git status 命令
上篇我们已经添加了myTeam.txt文件并提交了,现在再向其写入新的一行内容
SuperDo.Team.Good
好了,我们现在运行下 git status 命令看看,git status 命令可以让我们时刻知道仓库当前的状态.
git status

上图中的内容的命令告诉我们,myTeam.txt被修改过了,目前还没有准备提交的修改。
git diff命令
上面的git status 命令告诉我们myTeam.txt被修改了,如果能看看具体修改了什么内容,那该多好。比如刚过了个愉快的周末,周一一上班时,已经记不清上次对myTeam.txt做了啥修改,所以,需要用git diff这个命令
git diff

git diff 顾名思义就是查看difference,显示的格式正是Unix通用的diff格式,从上图可知我们在第二行添加了新内容“SuperDo.Team.Good”,知道myTeam.txt的修改内容后,我们可以放心的提交文件了(复习一遍).
- 1.使用git add(无任何提示)。
git add myTeam.txt
- 2.在git commit 前我们使用下git status 看下仓库的状态。
git status

git 告诉我们,将要被提交的修改包括myTeam.txt,我们可以放心地提交了.
- 3.使用 git commit。
git commit -m "add SuperDo.Team.Good"

- 4.使用 git status。
git status

总结
- 1.随时掌握工作区的状态,使用git status命令。
- *2.git status告诉你有文件被修改过,用git diff可以查看修改内容。 **
(http://www.cnblogs.com/superdo)原创,转载务必在明显处注明:(作者官方网站: 宝宝巴士 ) _
_转载自【宝宝巴士SuperDo团队】**原文链接: http://www.jianshu.com/p/ae9fa28f71c5_
git status 命令
上篇我们已经添加了myTeam.txt文件并提交了,现在再向其写入新的一行内容
SuperDo.Team.Good
好了,我们现在运行下 git status 命令看看,git status 命令可以让我们时刻知道仓库当前的状态.
git status

上图中的内容的命令告诉我们,myTeam.txt被修改过了,目前还没有准备提交的修改。
git diff命令
上面的git status 命令告诉我们myTeam.txt被修改了,如果能看看具体修改了什么内容,那该多好。比如刚过了个愉快的周末,周一一上班时,已经记不清上次对myTeam.txt做了啥修改,所以,需要用git diff这个命令
git diff

git diff 顾名思义就是查看difference,显示的格式正是Unix通用的diff格式,从上图可知我们在第二行添加了新内容“SuperDo.Team.Good”,知道myTeam.txt的修改内容后,我们可以放心的提交文件了(复习一遍).
- 1.使用git add(无任何提示)。
git add myTeam.txt
- 2.在git commit 前我们使用下git status 看下仓库的状态。
git status

git 告诉我们,将要被提交的修改包括myTeam.txt,我们可以放心地提交了.
- 3.使用 git commit。
git commit -m "add SuperDo.Team.Good"

- 4.使用 git status。
git status

总结
- 1.随时掌握工作区的状态,使用git status命令。
- *2.git status告诉你有文件被修改过,用git diff可以查看修改内容。 **
(http://www.cnblogs.com/superdo)原创,转载务必在明显处注明:(作者官方网站: 宝宝巴士 ) _
_转载自【宝宝巴士SuperDo团队】**原文链接: http://www.jianshu.com/p/7808d67a2312_
git status 命令
上篇我们已经添加了myTeam.txt文件并提交了,现在再向其写入新的一行内容
SuperDo.Team.Good
好了,我们现在运行下 git status 命令看看,git status 命令可以让我们时刻知道仓库当前的状态.
git status

上图中的内容的命令告诉我们,myTeam.txt被修改过了,目前还没有准备提交的修改。
git diff命令
上面的git status 命令告诉我们myTeam.txt被修改了,如果能看看具体修改了什么内容,那该多好。比如刚过了个愉快的周末,周一一上班时,已经记不清上次对myTeam.txt做了啥修改,所以,需要用git diff这个命令
git diff

git diff 顾名思义就是查看difference,显示的格式正是Unix通用的diff格式,从上图可知我们在第二行添加了新内容“SuperDo.Team.Good”,知道myTeam.txt的修改内容后,我们可以放心的提交文件了(复习一遍).
- 1.使用git add(无任何提示)。
git add myTeam.txt
- 2.在git commit 前我们使用下git status 看下仓库的状态。
git status

git 告诉我们,将要被提交的修改包括myTeam.txt,我们可以放心地提交了.
- 3.使用 git commit。
git commit -m "add SuperDo.Team.Good"

- 4.使用 git status。
git status

总结
- 1.随时掌握工作区的状态,使用git status命令。
- *2.git status告诉你有文件被修改过,用git diff可以查看修改内容。 **
(http://www.cnblogs.com/superdo)原创,转载务必在明显处注明:(作者官方网站: 宝宝巴士 ) _
_转载自【宝宝巴士SuperDo团队】**原文链接: http://www.jianshu.com/p/7808d67a2312_
git status 命令
上篇我们已经添加了myTeam.txt文件并提交了,现在再向其写入新的一行内容
SuperDo.Team.Good
好了,我们现在运行下 git status 命令看看,git status 命令可以让我们时刻知道仓库当前的状态.
git status

上图中的内容的命令告诉我们,myTeam.txt被修改过了,目前还没有准备提交的修改。
git diff命令
上面的git status 命令告诉我们myTeam.txt被修改了,如果能看看具体修改了什么内容,那该多好。比如刚过了个愉快的周末,周一一上班时,已经记不清上次对myTeam.txt做了啥修改,所以,需要用git diff这个命令
git diff

git diff 顾名思义就是查看difference,显示的格式正是Unix通用的diff格式,从上图可知我们在第二行添加了新内容“SuperDo.Team.Good”,知道myTeam.txt的修改内容后,我们可以放心的提交文件了(复习一遍).
- 1.使用git add(无任何提示)。
git add myTeam.txt
- 2.在git commit 前我们使用下git status 看下仓库的状态。
git status

git 告诉我们,将要被提交的修改包括myTeam.txt,我们可以放心地提交了.
- 3.使用 git commit。
git commit -m "add SuperDo.Team.Good"

- 4.使用 git status。
git status

总结
- 1.随时掌握工作区的状态,使用git status命令。
- *2.git status告诉你有文件被修改过,用git diff可以查看修改内容。 **
(http://www.cnblogs.com/superdo)原创,转载务必在明显处注明:(作者官方网站: 宝宝巴士 ) _
_转载自【宝宝巴士SuperDo团队】**原文链接: http://www.jianshu.com/p/7808d67a2312_
git status 命令
上篇我们已经添加了myTeam.txt文件并提交了,现在再向其写入新的一行内容
SuperDo.Team.Good
好了,我们现在运行下 git status 命令看看,git status 命令可以让我们时刻知道仓库当前的状态.
git status

上图中的内容的命令告诉我们,myTeam.txt被修改过了,目前还没有准备提交的修改。
git diff命令
上面的git status 命令告诉我们myTeam.txt被修改了,如果能看看具体修改了什么内容,那该多好。比如刚过了个愉快的周末,周一一上班时,已经记不清上次对myTeam.txt做了啥修改,所以,需要用git diff这个命令
git diff

git diff 顾名思义就是查看difference,显示的格式正是Unix通用的diff格式,从上图可知我们在第二行添加了新内容“SuperDo.Team.Good”,知道myTeam.txt的修改内容后,我们可以放心的提交文件了(复习一遍).
- 1.使用git add(无任何提示)。
git add myTeam.txt
- 2.在git commit 前我们使用下git status 看下仓库的状态。
git status

git 告诉我们,将要被提交的修改包括myTeam.txt,我们可以放心地提交了.
- 3.使用 git commit。
git commit -m "add SuperDo.Team.Good"

- 4.使用 git status。
git status

总结
- 1.随时掌握工作区的状态,使用git status命令。
- *2.git status告诉你有文件被修改过,用git diff可以查看修改内容。 **
(http://www.cnblogs.com/superdo)原创,转载务必在明显处注明:(作者官方网站: 宝宝巴士 ) _
_转载自【宝宝巴士SuperDo团队】**原文链接: http://www.jianshu.com/p/7808d67a2312_
git status 命令
上篇我们已经添加了myTeam.txt文件并提交了,现在再向其写入新的一行内容
SuperDo.Team.Good
好了,我们现在运行下 git status 命令看看,git status 命令可以让我们时刻知道仓库当前的状态.
git status

上图中的内容的命令告诉我们,myTeam.txt被修改过了,目前还没有准备提交的修改。
git diff命令
上面的git status 命令告诉我们myTeam.txt被修改了,如果能看看具体修改了什么内容,那该多好。比如刚过了个愉快的周末,周一一上班时,已经记不清上次对myTeam.txt做了啥修改,所以,需要用git diff这个命令
git diff

git diff 顾名思义就是查看difference,显示的格式正是Unix通用的diff格式,从上图可知我们在第二行添加了新内容“SuperDo.Team.Good”,知道myTeam.txt的修改内容后,我们可以放心的提交文件了(复习一遍).
- 1.使用git add(无任何提示)。
git add myTeam.txt
- 2.在git commit 前我们使用下git status 看下仓库的状态。
git status

git 告诉我们,将要被提交的修改包括myTeam.txt,我们可以放心地提交了.
- 3.使用 git commit。
git commit -m "add SuperDo.Team.Good"

- 4.使用 git status。
git status

总结
- 1.随时掌握工作区的状态,使用git status命令。
- *2.git status告诉你有文件被修改过,用git diff可以查看修改内容。 **
(http://www.cnblogs.com/superdo)原创,转载务必在明显处注明:(作者官方网站: 宝宝巴士 ) _
_转载自【宝宝巴士SuperDo团队】**原文链接: http://www.jianshu.com/p/7808d67a2312_
git status 命令
上篇我们已经添加了myTeam.txt文件并提交了,现在再向其写入新的一行内容
SuperDo.Team.Good
好了,我们现在运行下 git status 命令看看,git status 命令可以让我们时刻知道仓库当前的状态.
git status

上图中的内容的命令告诉我们,myTeam.txt被修改过了,目前还没有准备提交的修改。
git diff命令
上面的git status 命令告诉我们myTeam.txt被修改了,如果能看看具体修改了什么内容,那该多好。比如刚过了个愉快的周末,周一一上班时,已经记不清上次对myTeam.txt做了啥修改,所以,需要用git diff这个命令
git diff

git diff 顾名思义就是查看difference,显示的格式正是Unix通用的diff格式,从上图可知我们在第二行添加了新内容“SuperDo.Team.Good”,知道myTeam.txt的修改内容后,我们可以放心的提交文件了(复习一遍).
- 1.使用git add(无任何提示)。
git add myTeam.txt
- 2.在git commit 前我们使用下git status 看下仓库的状态。
git status

git 告诉我们,将要被提交的修改包括myTeam.txt,我们可以放心地提交了.
- 3.使用 git commit。
git commit -m "add SuperDo.Team.Good"

- 4.使用 git status。
git status

总结
- 1.随时掌握工作区的状态,使用git status命令。
- *2.git status告诉你有文件被修改过,用git diff可以查看修改内容。 **
(http://www.cnblogs.com/superdo)原创,转载务必在明显处注明:(作者官方网站: 宝宝巴士 ) _
_转载自【宝宝巴士SuperDo团队】**原文链接: http://www.jianshu.com/p/7808d67a2312_
网友评论