(A) switching a branch command is executed git -
git Checkout develop PS: Switching to develop the branch,
(B) immediately see the staging area and working directory of the state - is also equivalent to view the file to be submitted
git status
(C) Address
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/
(D) Put in storage area
git add .
(E) upload the file description - this goes without saying, right?
git commit -m 'XXXXX'
(Vi) push address
git push origin HEAD: refs / for / develop
If you want to use another branch how to do?
View first branch, usually the default display for the master
(A) git branch
(B) switch to the branch want to go
git checkout develop
(C) and then check to see if the situation branch of success - this is equivalent to the step has switched to develop this branch of.
git branch