Update 2.3-保存你的更改.md.
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
|
||||
***[git add](2.3.1-git_add.md) / [git commit](2.3.2-git_commit.md) / [git diff](2.3.3-git_diff.md) / [git stash](2.3.4-git_stash.md) / [.gitignore](2.3.5-git_ignore.md)***
|
||||
|
||||
> ✍️ [童仲毅](https://github.com/geeeeeeeeek) | ⏳ 2018 年 10 月 26 日
|
||||
> ✍️ [童仲毅](https://github.com/geeeeeeeeek) | ⏳ 2018 年 12 月 1 日
|
||||
>
|
||||
> ©️ 本文演绎自 Atlassian 编写的 [_Saving Changes_](https://www.atlassian.com/git/tutorials/saving-changes)。页面上所有内容采用知识共享-署名([CC BY 2.5 AU](http://creativecommons.org/licenses/by/2.5/au/deed.zh))许可协议。
|
||||
|
||||
@ -18,6 +18,10 @@ Git 还有另一个保存机制:“储藏”(stash)。储藏是一个临
|
||||
|
||||
你可以通过设置在保存时跳过 Git 仓库里一些文件或目录。Git 将不会保存这些文件的任何更改。Git 有多种方式可以管理忽略文件列表。请访问 git ignore 页面了解更多。
|
||||
|
||||
## 总结
|
||||
|
||||
当你想要让 Git 将当前的项目状态保存成快照添加到提交历史中时,`git add` 是你要用到的第一个命令。单独使用时,`git add` 会将工作目录中的更改添加到缓存区。`git status` 命令用于检查仓库的当前状态。它能够帮助你判断 `git add` 操作成功与否。``git reset` 命令用于撤销 `git add` 命令。`git commit` 命令会发送一份缓存区的快照到仓库的提交历史。
|
||||
|
||||
> 这篇文章是[**「git-recipes」**](https://github.com/geeeeeeeeek/git-recipes/)的一部分,点击 [**目录**](https://github.com/geeeeeeeeek/git-recipes/wiki/) 查看所有章节。
|
||||
>
|
||||
> 如果你觉得文章对你有帮助,欢迎点击右上角的 **Star** :star2: 或 **Fork** :fork_and_knife:。
|
||||
|
||||
Reference in New Issue
Block a user