Pulling down latest code from github to Android Studio

前端 未结 2 1885
醉梦人生
醉梦人生 2021-02-13 11:32

How to sync my local Android Studio project with the latest code on github?
I want to download all the latest changes but I don\'t

2条回答
  •  说谎
    说谎 (楼主)
    2021-02-13 12:08

    "I want to download all the latest changes but I don't want my local changes overwritten"

    You probably want to 'fetch' the upstream before merging your changes then.

    VCS -> Git -> Fetch, this will update all your branches, so you can check them and later use VCS -> Git -> Merge Changes to update your local code.

    That's what fits your needs the best, I think. Normally, I would just pull the changes and resolve the conflicts.

提交回复
热议问题