Using Git for the NIM Paper

  • to get Elton’s repository on the local host:
    • git clone git@github.com:eltonssmith/GlueX_nim
  • but better than that, clone markito3’s repository and add Elton’s repository as a remote:
    • git clone git@github.com:markito3/gluex-nim git remote add elton git@github.com:eltonssmith/GlueX_nim
  • then fetch and pull from Elton:
    • git fetch elton git pull elton master
  • once changes pushed back to markito3 github repo, pull request can be issued to eltonssmith
  • For changes made on a branch in a local repo, to prepare for the pull request (starting on my_branch):
    • git fetch eltongit branch -u elton/mastergit pullgit rebasegit push -u origin my_branch
  • got to eltonssmith repo on github to create the pull request