Versions Compared

Key

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

...

Once the code is cleaned up and we have less repositories we will move the code to the slac-lcls organization. This organization will also be used by the DAQ group and allows to group all of your code development together.

Content

Table of Contents

GitHub account

If you do not already have a GitHub account, sign up for a new account on GitHub.

Setup git

The following steps describe how to setup git. This setup has to done only once for the machine where you are planing to develop code.

...

Code Block
languagebash
Host code.stanford.edu
  Hostname code.stanford.edu
  User git
  ProxyCommand ssh <your_unix_id>@psproxy nc %h %p

Host github.com
   Hostname github.com
   User git
   ProxyCommand ssh <your_unix_id>@psproxy nc %h %p

NOTE: make sure you "chmod 600 ~/.ssh/config", otherwise ssh will complain, bitterly.

To access GitHub repos using HTTPS, set your Git http.proxy using 

Code Block
languagebash
git config --global http.proxy http://psproxy:3128

 

Useful Commands

Check status of the repo

...

This can fail if upstream is ahead of you local version. In this case you first have to get the most recent changes from upstream:

Here is a blog post that explains the difference between merge and rebase

Code Block
languagebash
themeEmacs
git fetch origin 
git rebase -p origin

...

Afterwards just clone the new repository and the follow the workflow above

...

???

 Convert svn repository to git

...