Versions Compared

Key

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

...

The repositories are hosted on GitHub.

The analysis code for lcls LCLS is currently lives inhosted in the lcls-psana organization on GitHub.

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.

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.

...

Confirm that your email is correct by:
git config --global user.email
GitHub account
If you do not already have a GitHub account, sign up for a new account on GitHub.

Setup ssh keys for your githubGitHub account *
https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/

git clone git@github.com:lcls-psana/xtcav.git

 

Useful Commands

  • Check status of the repo
    git

...

  • status

  • Show current and available branches

...

  • in the

...

  • repository
    git

...

  • branch

...

  • -a

 

Git workflow

The following section describes the workflow for developing software with git.

Adding new files to the git repo

...

git push origin "branch name"

...