在向远程仓库推送之前, 为避免冲突, 通常会先从远程仓库更新, 再添加文件, 再 commit 到 staging area, 最近 push.
更新使用命令 Git pull
- # Git pull
- remote: Counting objects: 3, done.
- remote: Compressing objects: 100% (2/2), done.
- remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
- Unpacking objects: 100% (3/3), done.
- Fast-forward
- newText | 1 +
- 1 file changed, 1 insertion(+)
- create mode 100644 newText
来源: http://www.bubuko.com/infodetail-3331374.html