git pull: replace local version with the remote version

后端 未结 3 593
谎友^
谎友^ 2021-01-30 17:43

There is something I don\'t understand with the git pull command. I have a foobar Git repository with two files, named f1 and f2

3条回答
  •  花落未央
    2021-01-30 18:10

    Pulling is mainly to merge your remote repository with your local one. Short answer is nothing is wrong with your git setup as your latest remote changes are already there in your local repository. If someone else push changes to the remote repository that is when pull comes handy. Those changes get pulled and merged into your local repository after you do the pull.

提交回复
热议问题