-1

Here is what I did:

  1. Forked a repo
  2. Created new feature branch on my fork
  3. Submitted PR to original repo master (accepted, merged)

Next How Do I:

  1. Update "master" in my own fork?
mkk
  • 879
  • 6
  • 19
  • Is this on GitHub / Bitbucket? There's a button for bringing your fork up to date with the original. – matt May 28 '20 at 21:40
  • yes the PR was accepted and merged, OP corrected – mkk May 28 '20 at 21:42
  • Well so just ask your fork to update. – matt May 28 '20 at 21:42
  • 1
    If you want to do it locally, complete instructions here: https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/syncing-a-fork – matt May 28 '20 at 21:43
  • Why do you need to update master of your fork? – max630 May 29 '20 at 04:45
  • https://stackoverflow.com/questions/7244321/how-do-i-update-a-github-forked-repository or https://stackoverflow.com/questions/48328058/git-how-to-re-syc-a-fork – max630 May 29 '20 at 04:57

2 Answers2

0

Below two commands will update your local master branch.

git checkout master

git pull

Damien
  • 1,582
  • 1
  • 13
  • 24
0

As suggested in the comments, the relevant operation is fork synchronization:

  1. Add the upstream remote, call it "upstream"

  2. git fetch from the upstream remote

    git fetch upstream
    
  3. check out "master" from my fork

    git checkout master
    
  4. merge the upstream master (which now has my accepted changes) into my master

    git merge upstream/master
    
mkk
  • 879
  • 6
  • 19