UPMC iCub project/HowTo git svn

From Wiki for iCub and Friends
Jump to: navigation, search

SVN

  • download an entire repository:
  svn checkout URL      or         svn co URL
  • update the local copy of the repository:
  svn update            or         svn up
  • commit a change:
  svn add FILE
  svn commit -m "MESSAGE"


GIT

  • download an entire repository:
  git clone URL
  • see the status of your local repository:
  git status
  • update from the server:
  git pull
  • commit a file (local commit):
  git add FILE
  git status
  git commit -m "MESSAGE"
  git show
  • push the commits on the server:
  git add FILE
  git status
  git commit -m "MESSAGE"
  git push
  • commit only certain files (not all the ones you modified):
  git stash
  git pull --rebase
  git stash pop
  git status
  git log origin/master..master
  git push
  git status
  • a nice cheat sheet:
git cheat sheet