1, the command code is submitted step
a、git add
b、git commit
Or git commit -s
(Submitted here should conform to commit format: Commit Message code format)
When added here commit format, the input may not be used with git, by git config --global core.editor vim, to modify the input format vim
c, git push ssh: // remote branch name HEAD gerrit address / current directory: refs / for / branch name
Or git push origin HEAD: refs / for / branch name
Remote branch name of the current directory
git config --lis
Submitted before returning the
git reset --hard commit number
2. Other commonly used commands
git status
git branch
git branch + branch
git checkout + branch
branch git branch -D +