Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Click "create pull request", which will take you to the same page we had in the tutorial! The only difference here is that you don't need any reviewers because you're merging it into your personal fork.

 

Info

Note: Sometimes it'll say that it can't be merged automatically. This usually happens when you've edited the same file as one that got updated in production. One way to avoid this problem on GitHub is to always keep your fork's master up to date with production and do all your work in a different branch and just deal with the merge conflicts locally

...

Using the steps in the tutorial, ssh into rhel6-64 and navigate to the repository that you created with Matt's script created (the one where it prompted you for a path in AFS) and run "git --bare fetch origin master:master". Mine doesn't have output because it's already up to date, but yours should

...

Back in your physics devPanel directory, run "git pull origin master", and that should be it! Again, your output will be different from mine because mine is already up to date.

Command Line Method

Info

These two methods will rely heavily on git remotes. If you'd like to learn more about them, check this out!

Pulling From the Local Production Copy

Assuming that you trust the custodian of the local production copy to keep it up to date, this method is probably the easiest.

 

In your physics devPanel directory, run "git remote add upstream ~/opsTools/devPanel"

Image Added

Now you can just run "git pull upstream master" whenever you'd like to bring your local copy up to date with production!

Image Added

 

Pulling from the SLAC Lab Production Copy

If you don't trust the custodian of the local production copy to keep it up to date, then you can connect your bare AFS repo directly to SLAC Lab's production repo.

 

Using the steps in the tutorial, ssh into rhel6-64, navigate to the bare repo you created with Matt's script, and run "git remote add upstream git@github.com:slaclab/devPanel.git" (gotten from the SLAC Lab devPanel page, much like we got it for our personal forks in the tutorial)

Image Added

Image Added

 

Now, similar to in the GitHub method, you should run "git --bare fetch upstream master:master"  (yes, I have an error message, but it's for stupid reasons. Yours should be fine)

Image Added

And now it's the same step as in the GitHub method, running "git pull origin master" from your devPanel physics directory.

Those last two steps will need to be run every time you want to update.