git pullで更新履歴をローカルリポジトリに反映させる。
別のユーザー(別のPCでもいい)がリモートリポジトリを更新しており
その更新履歴を自分のPCに反映させたい場合にはプルを使う。
実行環境 | ver |
---|---|
Ubuntu | 18.04.2 LTS |
GIT | 2.17.1 |
$ git pull origin master > Username for 'https://github.com': <user_name> > Password for 'https://<user_name>@github.com': <password> > remote: Enumerating objects: 11, done. > remote: Counting objects: 100% (11/11), done. > remote: Compressing objects: 100% (3/3), done. > remote: Total 8 (delta 5), reused 8 (delta 5), pack-reused 0 > Unpacking objects: 100% (8/8), done. > From https://github.com/kinacon711/github_private1- > * branch master -> FETCH_HEAD > d6530122..3ec8b27a master -> origin/master > Updating d6530122..3ec8b27a > Fast-forward > test.md | 24 ++++++++++++++++++++++++ > test2.md | 4 ++-- > 2 files changed, 26 insertions(+), 2 deletions(-) > create mode 100644 test3.md
以上。