WeKnowAnswers

From Noisebridge
(Difference between revisions)
Jump to: navigation, search
 
Line 1: Line 1:
 
__TOC__
 
__TOC__
 +
 +
=init=
 +
> git init
  
 
= push =
 
= push =

Latest revision as of 01:24, 17 March 2012

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