Git’te Upstream Branch Nasıl Kurulur?

Hali hazırda olan kodları uzak sunucudaki yeni kodlarla güncellemek için upstream komutunu kullanabilirsiniz.

Hali hazırda olan kodları uzak sunucudaki yeni kodlarla güncellemek için upstream komutunu kullanabilirsiniz.

git remote -v
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
git remote -v
git fetch upstream
git checkout master
git merge upstream/master
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
git fetch upstream
git checkout master
git reset --hard upstream/master  
git push origin master --force