git handbook
Git Command
git init
git clone
git status
git add 添加文件到,记录到 staging area
git rm 删除文件到,记录到staging area
git commit
git log
git show
git reset:
grammar: git reset --arg <commit>
<commit> 是版本号
--arg:
--mixed:将改变的记录返回到 working tree
--soft: 将改变的记录返回到 staging area
--hard: 将改变的记录删除。
git checkout:
recover from deleted files in working tree.
git remote -v
查看 remote 端
git config:
user.name =
user.mail =
--global
.config file
git merge
<branch-id>
git branch:
-d
-D
<branch-name>
git checkout 切换branch
转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论。
文章标题:git handbook
本文作者:枫云李
发布时间:2019-07-07, 00:00:00
最后更新:2020-01-16, 02:06:12
原始链接:https://primelyw.github.io/2019/07/07/git_handbook/版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。