We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BY 张建成(prettyEcho@github) 除非另行注明,页面上所有内容采用知识共享-署名(CC BY 2.5 AU)协议共享
BY 张建成(prettyEcho@github)
除非另行注明,页面上所有内容采用知识共享-署名(CC BY 2.5 AU)协议共享
🐬🐬 欢迎评论和star 🐳🐳
git clone
git config
git add
git commit
git status
git pull
git push
git log git
git checkout
这个命令有三个不同的作用:检出文件、检出提交和检出分支
提交层面
文件层面
example:
git reset
修改提交版本,会删除提交历史(一定要谨慎),切记当把提交推送到远端后,禁止使用git reset
除了在当前分支上操作,你还可以通过传入这些标记来修改你的缓存区或工作目录:
* --soft – 缓存区和工作目录都不会被改变 * --mixed – 默认选项。缓存区和你指定的提交同步,但工作目录不受影响 * --hard – 缓存区和工作目录都同步到你指定的提交
常用操作:
* git reset --mixed HEAD / git reset HEAD * git reset --hard HEAD
git revert
git stash
git branch
简记图
The text was updated successfully, but these errors were encountered:
No branches or pull requests
🐬🐬 欢迎评论和star 🐳🐳
git命令行
git clone
git config
git add
git commit
git status
git pull
git push
git log git
git checkout
这个命令有三个不同的作用:检出文件、检出提交和检出分支
提交层面
文件层面
example:
git reset
修改提交版本,会删除提交历史(一定要谨慎),切记当把提交推送到远端后,禁止使用git reset
提交层面
除了在当前分支上操作,你还可以通过传入这些标记来修改你的缓存区或工作目录:
常用操作:
文件层面
git revert
git stash
git branch
简记图
https://www.cnblogs.com/houpeiyong/p/5890748.html
https://github.com/geeeeeeeeek/git-recipes
The text was updated successfully, but these errors were encountered: