25
loading...
This website collects cookies to deliver better user experience
$ git init
|$ git init <your repository name>
|$ git clone <git-repo-url>
|$ git branch <branch-name>
|$ git branch -a
|$ git branch or $ git branch --list
|$ git branch -d <branch-name>
|git branch -m <branch-name> <new-branch-name>
|git checkout <branch-name>
|git checkout -b <new-branch-name>
|$ git add <file-name-1> <file-name-2>
|$ git add -A
|$ git add -u
|$ git commit -a
|$ git commit -m “<commit-message>”
|$ git commit -am “<commit-message>”
|$ git commit --amend -m “<commit-message>"
|$ git push or $ git push <remote> <branch-name>
|git push --set-upstream <remote> <branch-name>or git push -u origin <branch-name>
|$ git pull or $ git pull <remote> or $ git pull <remote> <branch-name>
|$ git checkout <branch>
|$ git pull or git fetch
|$ git merge <branch-name>
|$ git status
|