This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| computing:git:basics [2013/12/05 18:16] – ngadiuba | computing:git:basics [2013/12/05 18:23] (current) – ngadiuba | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| * Generating SSH Keys: [[https:// | * Generating SSH Keys: [[https:// | ||
| - | |||
| * Initialize in your working directory (or in your home) an empty git repository: | * Initialize in your working directory (or in your home) an empty git repository: | ||
| - | | + | |
| - | git config --global user.name "your name as in github" | + | git config --global user.name "your name as in github" |
| - | git config --global user.email "your email" | + | git config --global user.email "your email" |
| - | git config --global core.editor "your favorite editor (ex. emacs)" | + | git config --global core.editor "your favorite editor (ex. emacs)" |
| - | #check your settings | + | #check your settings |
| - | git config --list | + | git config --list |
| - | + | ||
| * Check out git-cmssw commands in your home: | * Check out git-cmssw commands in your home: | ||
| - | | + | |
| - | #add this line to your ~.cshrc | + | #add this line to your ~.cshrc |
| - | export PATH=$PWD/ | + | export PATH=$PWD/ |
| - | + | ||
| * Setup a CMSSW area | * Setup a CMSSW area | ||
| - | | + | |
| - | cd CMSSW_X_X_X/ | + | cd CMSSW_X_X_X/ |
| - | cmsenv | + | cmsenv |
| - | git cms-init | + | git cms-init |
| - | + | ||
| * To check out a package simply do | * To check out a package simply do | ||
| - | | + | |
| | | ||
| | | ||