Git 更新

在向远程仓库推送之前,为避免冲突,通常会先从远程仓库更新,再添加文件,再commit到staging area,最近push。

更新使用命令git pull

1
2
3
4
5
6
7
8
9
10
11
12
# 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 .
来自 https: //github .com /xxx/gitDemo
    117adf3..90033cd  master     -> origin /master
更新 117adf3..90033cd
Fast-forward
  newText | 1 +
  file changed, 1 insertion(+)
  create mode 100644 newText

猜你喜欢

转载自www.cnblogs.com/max-hou/p/12040315.html
今日推荐