Git is a
version control system (VCS) for code. It is used to keep track of
revisions and allow a development team to work together on a
project through branches. This fast guide has the scope of show an overview of git using the command line interface (CLI).
To begin with a clone a remote repository in your directory:
$ git clone http://<username>@<repository_url>
$ git checkout <branch_name>
$ git checkout -b <branch_name>
$ git branch
The command shows the branch list and the current branch is that with *.
For the status about the files changed
$ git status
$ git checkout -- <file_with_changes>
$ git add <file_with_changes>
$ git commit -m "your comment"
$ git pull
$ git merge <branch_target>
$ git push origin <your_branch>
$ git tag <tag_name>
$ git push origin <tag_name>
No comments:
Post a Comment