WeKnowAnswers

From Noisebridge
Jump to: navigation, search

Contents


[edit] init

> git init

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

[edit] change

$ git commit --amend

[edit] undo

> git stash

and

> git pop
Personal tools