view page source - page history - about editing

Revision History: Git

This is revision 328 of the page Git, as it appeared on Tue, 21 Jan 2014 15:09:33 -0800.

Things SVN can do that Git can't

  1. Checkout into a non-empty directory; you have to checkout into a temporary directory, move the .git folder into the non-empty directory, and run a git reset --hard


Create a branch:
  1. git branch - create a new branch
  2. git push origin - ??
  3. git checkout - switch to branch and update local copy to branch
  4. git commit -p - commit changes to local Git
  5. git push --set-upstream origin - push local Git changes to remote Git
Switching branches:
  1. git checkout master - switch back to master and update local copy to master
  2. git pull - download remote Git to local Git
Categories: Git | Subversion

view page source - what links to here? - page history - top
Last edited by jevon jevon 62 months ago