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