Development process using git common commands

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 +

 

Published 26 original articles · won praise 34 · views 90000 +

Guess you like

Origin blog.csdn.net/qq_36662437/article/details/104775592