User Tools

Site Tools


computing:git:basics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
computing:git:basics [2013/12/05 18:16] ngadiubacomputing:git:basics [2013/12/05 18:23] (current) ngadiuba
Line 2: Line 2:
  
   * Generating SSH Keys: [[https://help.github.com/articles/generating-ssh-keys]] (skip the xclip part and directly open the id_rsa.pub with the editor)   * Generating SSH Keys: [[https://help.github.com/articles/generating-ssh-keys]] (skip the xclip part and directly open the id_rsa.pub with the editor)
- 
   * 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 init +  git init 
-      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:
  
-      git clone git@github.com:fwyzard/cms-git-tools.git +  git clone git@github.com:fwyzard/cms-git-tools.git 
-      #add this line to your ~.cshrc +  #add this line to your ~.cshrc 
-      export PATH=$PWD/cms-git-tools:$PATH +  export PATH=$PWD/cms-git-tools:$PATH 
-      +
   * Setup a CMSSW area   * Setup a CMSSW area
  
-      scram p CMSSW_X_X_X +  scram p CMSSW_X_X_X 
-      cd CMSSW_X_X_X/src +  cd CMSSW_X_X_X/src 
-      cmsenv +  cmsenv 
-      git cms-init +  git cms-init 
-      +
   * To check out a package simply do   * To check out a package simply do
  
-      git cms-addpkg "Package"+  git cms-addpkg "Package"  
  
              
  
              
computing/git/basics.1386263771.txt.gz · Last modified: 2013/12/05 18:16 by ngadiuba