WeKnowAnswers

From Noisebridge
Jump to: navigation, search

init[edit]

> git init

push[edit]

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[edit]

$ git commit --amend

undo[edit]

> git stash

and

> git pop