Difference between revisions of "GIT Repository"
From Vlsiwiki
Jose Renau (Talk | contribs) (→Setup) |
Jose Renau (Talk | contribs) (→Setup) |
||
Line 6: | Line 6: | ||
git config --global user.email foo@soe.ucsc.edu | git config --global user.email foo@soe.ucsc.edu | ||
− | Checkout/clone once | + | Checkout/clone once ESESC |
+ | |||
+ | git clone ssh://mada0.cse.ucsc.edu/mada/server/git/esesc | ||
+ | |||
+ | Checkout/clone once MTHD | ||
git clone ssh://mada0.cse.ucsc.edu/mada/server/git/mthd | git clone ssh://mada0.cse.ucsc.edu/mada/server/git/mthd |
Revision as of 07:33, 22 April 2009
Setup
You need to setup your name and email
git config --global user.name "Your Username" git config --global user.email foo@soe.ucsc.edu
Checkout/clone once ESESC
git clone ssh://mada0.cse.ucsc.edu/mada/server/git/esesc
Checkout/clone once MTHD
git clone ssh://mada0.cse.ucsc.edu/mada/server/git/mthd
Operation
Every day synchronize with other people modifications
git pull
Whenever you perform a task commit the changes
git commit -a
Remember that a commit does not make the changes visible. Do frequent pushes to the server
git push
To add/rename files uses the git command
git mv foo foo2 git add foo.cpp