How to update Git clone

前端 未结 2 1331
眼角桃花
眼角桃花 2020-12-07 14:32

I have started using Git. I have cloned the repo on my local system. I make the changes on the local machine and use git push to the update the remote repo. It

相关标签:
2条回答
  • 2020-12-07 15:27

    If you want to fetch + merge, run

    git pull
    

    if you want simply to fetch :

    git fetch
    
    0 讨论(0)
  • 2020-12-07 15:28
    git pull origin master
    

    this will sync your master to the central repo and if new branches are pushed to the central repo it will also update your clone copy.

    0 讨论(0)
提交回复
热议问题