-
version
View fallback version history git log
to see a fallback version history git log
to view the version history git reflog forward
version shuttle git reset --hard <commit_id> / git reset --hard HEAD ^ -
Repository
Add the files to the staging area git add readme.md
submit this revision git commit -m "add readme file"
clone repository git clone [email protected]: Chen-xXing / <repositories name> .git
view the remote state git remote -v
push branch git push origin -
Branch
View branch git branch
create a branch git branch
switching branch git switch / git checkout
to create + switching branch git switch -c / git checkout -b
merge a branch to the current branch git merge name
normal mode merge branches (disable fast forwd mode) git merge - -no-off dev
delete branch git branch -d name
to see the consolidation of branch git log --graph (-pretty = oneline --abbrev -commit)
[Git commonly used commands]
Guess you like
Origin blog.csdn.net/weixin_42176221/article/details/105144231
Recommended
Ranking