程序员图解 Git 工作原理
基本用法
基本用法

git add files 把当前文件放入暂存区域。 git commit 给暂存区域生成快照并提交。 git reset – files 用来撤销最后一次 git add files,你也可以用 git reset 撤销所有暂存区域文件。 git checkout – files 把文件从暂存区域复制到工作目录,用来丢弃本地修改。

git commit -a 相当于运行 git add 把所有当前目录下的文件加入暂存区域再运行。 git commit files 进行一次包含最后一次提交加上工作目录中文件快照的提交。并且文件被添加到暂存区域。 git checkout HEAD – files 回滚到复制最后一次提交。
约定
约定

命令详解
命令详解


















技术说明
技术说明
http://marklodato.github.io/visual-git-guide/index-zh-cn.html#merge
http://marklodato.github.io/visual-git-guide/index-zh-cn.html#rebase
http://marklodato.github.io/visual-git-guide/index-zh-cn.html#detached
http://en.wikipedia.org/wiki/Three-way_merge
http://www.kernel.org/pub/software/scm/git/docs/git-rebase.html#_interactive_mode
—————————————
推荐阅读
2T技术资源大放送!包括但不限于:C/C++,Linux,Python,Java,人工智能,考研,软考,英语,等等。在公众号内回复「资源」,即可免费获取!回复「社群」,可以邀请你加入读者群!
❤️给个「在看」,是对我最大的支持❤️
评论