github
एक कांटेक्ट रिपॉजिटरी को अपडेट करें
खोज…
टिप्पणियों
अपने कांटे के लिए एक रिमोट कॉन्फ़िगर करें फिर अपने कांटे (मास्टर शाखा) को सिंक करें
- मेरे कांटे के लिए एक रिमोट कॉन्फ़िगर करें
$ cd my_local_repo
$ git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
# Specify a new remote upstream repository that will be synced with the fork
$ git remote -v
# Verify the new upstream repository specified for my fork
- स्थानीय रूप से मेरे कांटे को सिंक करें
$ cd my_local_repo
$ git fetch upstream
# Fetch the branches and their respective commits from the upstream repository
# Commits to master will be stored in a local branch, upstream/master
$ git checkout master
$ git merge upstream/master
# Merge the changes from upstream/master into your local master branch
# brings your fork's master branch into sync with the upstream repo
- मेरे कांटे को गितुब पर सिंक करें
$ git push origin master
Modified text is an extract of the original Stack Overflow Documentation
के तहत लाइसेंस प्राप्त है CC BY-SA 3.0
से संबद्ध नहीं है Stack Overflow