Some git commands

As a front-end, various commands git should need to know, because some time ago had some problems, always felt that each encounter problems point to Baidu is not always so good, or record what some of the more common commands it. After the encounter continue to add new again.

1. Create a new local branch git checkout -b my-test

2. Force the code with the remote repository current branch above New git pull --rebase origin master

3. In another remote branch change in the local branch of merging into git merge my-test  

4. Check the bypass eslint git commit -m 'xxxx' --no-verify commit submitting

The withdrawal of the last commit git reset --soft HEAD ^

 

Guess you like

Origin www.cnblogs.com/fdd-111/p/11635054.html