Changes between Version 13 and Version 14 of HowToGit
- Timestamp:
- May 18, 2019, 7:31:54 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
HowToGit
v13 v14 69 69 # create fork via GitHub Web interface 70 70 71 # checkout your fork 72 git clone $my_for_url 73 74 # all steps see above, core dev section 75 ... 71 # checkout your the osgeo repo 72 git clone https://github.com/OSGeo/grass.git 76 73 77 74 # go to repo dir 78 75 cd grass 79 76 80 # add your fork as 81 git remote add github https://github.com/<username>/grass.git 82 git remote set-url --push github ssh://git@github.com/<username>/grass.git 77 # add your fork as another remote 78 git remote add fork https://github.com/<username>/grass.git 83 79 84 git push github <feature-branch> 80 # change the push URL for your fork to SSH if you have it set up 81 git remote set-url --push fork ssh://git@github.com/<username>/grass.git 85 82 86 # push feature branch to own fork repo of GRASS GIS 87 git push origin $feature_branch_name # here: origin is fork repo 83 # all steps see above, core dev section (branch, edit, commit) 84 ... 85 86 # push feature branch to your own fork repo of GRASS GIS 87 88 git push fork <feature-branch> 88 89 89 90 # create pull request in GitHub Web interface (the link is shown conveniently in the terminal) … … 92 93 This way origin is the authoritative source for the code, and additional remotes are forks. 93 94 95 What is missing above is how you actually update the repo with changes in OSGeo repo master branch. 96 97 Alternative is to clone your fork and add osgeo as another remote ("option 2" - "clone fork" as opposed to "clone osgeo"). This would be the same as what !GitHub documentation suggests. See: [https://help.github.com/en/articles/fork-a-repo Fork a repo] and [https://help.github.com/en/articles/syncing-a-fork Syncing a fork] in !GitHub help. 94 98 == Keep your feature branch up to date == 95 99