Sync FORK Repository - nsaiisasidhar/Document GitHub Wiki
---------- TO SYNC FORK REPOSITORY WITH REMOTE ORIGINAL REPOSITORY ---------------------
FORK repository ALLWAYS POINT TO "origin"
-
Create LOCAL repository -- CLONE REMOTE repository Go To Folder of CLONED repository -- RIGHT CLICK -- Click on GIT BASH HERE option
-
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 ----------------------------------------
-
Check NO OF COMMITS made in each branch by CLICKING ON COMMITS (BESIDES BRANCHES)
-
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)