Changes between Version 13 and Version 14 of HowToGit


Ignore:
Timestamp:
May 18, 2019, 7:31:54 AM (5 years ago)
Author:
wenzeslaus
Comment:

clean up and clarify the "clone osgeo" workflow

Legend:

Unmodified
Added
Removed
Modified
  • HowToGit

    v13 v14  
    6969# create fork via GitHub Web interface
    7070
    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
     72git clone https://github.com/OSGeo/grass.git
    7673
    7774# go to repo dir
    7875cd grass
    7976
    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
     78git remote add fork https://github.com/<username>/grass.git
    8379
    84 git push github <feature-branch>
     80# change the push URL for your fork to SSH if you have it set up
     81git remote set-url --push fork ssh://git@github.com/<username>/grass.git
    8582
    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
     88git push fork <feature-branch>
    8889
    8990# create pull request in GitHub Web interface (the link is shown conveniently in the terminal)
     
    9293This way origin is the authoritative source for the code, and additional remotes are forks.
    9394
     95What is missing above is how you actually update the repo with changes in OSGeo repo master branch.
     96
     97Alternative 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.
    9498== Keep your feature branch up to date ==
    9599