How to check for changes on remote (origin) Git repository

后端 未结 8 1852
伪装坚强ぢ
伪装坚强ぢ 2020-12-04 04:12

What are the Git commands to do the following workflow?

Scenario

I cloned from a repository and did some commits of my own to my local reposit

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-04 04:49

    I just use

    git remote update
    git status
    

    The latter then reports how many commits behind my local is (if any).

    Then

    git pull origin master
    

    to bring my local up to date :)

提交回复
热议问题