WeKnowAnswers

From Noisebridge
(Difference between revisions)
Jump to: navigation, search
Line 14: Line 14:
 
= change =
 
= change =
 
  $ git commit --amend
 
  $ git commit --amend
 +
 +
= undo =
 +
 +
> git stash
 +
and
 +
> git pop

Revision as of 23:51, 16 March 2012

Contents


push

SERVER:

> REPO=~/git/foo.git
> mkdir $REPO
> cd $REPO
> git init --bare

LAPTOP:

$ REMOTE=quux@baz.org
$ git remote add origin $REMOTE:$REPO
$ git push origin master

change

$ git commit --amend

undo

> git stash

and

> git pop
Personal tools