Sync FORK Repository - nsaiisasidhar/Document GitHub Wiki

---------- TO SYNC FORK REPOSITORY WITH REMOTE ORIGINAL REPOSITORY ---------------------

FORK repository ALLWAYS POINT TO "origin"

  1. Create LOCAL repository -- CLONE REMOTE repository Go To Folder of CLONED repository -- RIGHT CLICK -- Click on GIT BASH HERE option

  2. Declare REMOTE ORIGINAL REPOSITORY as UPSTREAM git remote add upstream git://github.com/PROJECT_OWNER_NAME/PROJECT_NAME.git

---------- TO CHECK IF FORK REPOSITORY IS UPDATED ----------------------------------------

  1. Check NO OF COMMITS made in each branch by CLICKING ON COMMITS (BESIDES BRANCHES)

  2. To REBASE BRANCH to particular COMMIT git rebase --onto (POINTS HEAD OF LOCAL REPOSITORY TO THAT COMMIT) git push -f origin master (PUSHES CHANGES FROM LOCAL REPOSITORY TO ORIGIN WHICH IS FORK REPOSITORY)

⚠️ **GitHub.com Fallback** ⚠️