Skip to content

Instantly share code, notes, and snippets.

@couchoud
Created June 16, 2011 12:21
Show Gist options
  • Save couchoud/1029123 to your computer and use it in GitHub Desktop.
Save couchoud/1029123 to your computer and use it in GitHub Desktop.
git stuff

##Branching:

-git branch foo

-git co foo

###Merge branch into master:

-git co master

-git merge foo

###Update from origin:

git pull origin master

###Push to origin:

git push

restore files marked for deletion

git ls-files -d | xargs git checkout --

Archive

git archive --format zip --output ~/Desktop/foo.zip master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment