git command line use

* git branch : view local branch

* git branch -r : view remote branch

* git branch -a : view all branches

* git branch name : local new branch

* git checkout name : switch to the local name branch

* git pull origin name : pull code from remote name

* git merge name : merge name

* git diff : see conflicts

* git push origin name : commit code to remote name

* git status : check for changes

* git add name : add

* git commit -m 'comment' : commit the code to the local repository

[Note] : first pull, merge, commit

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325087992&siteId=291194637