Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 728 Bytes

File metadata and controls

40 lines (29 loc) · 728 Bytes

How to keep up to date a forked repo

forked_demo

Clone the repo first

  $ git clone <url>

Check the remote origin

  $ git remote -v

Add a new upstream

  • upstream mean where you get the update from
  $ git remote add upstream <upstream link>

Check the new upstream

  $ git remote -v

For update origin with changes that happened in upstream

  • or pull down all the remote changes from upstream
  • they are not merge with our local changes
  $ git fetch upstream

For merge with local file

  $ git merge upstream/dev