WeKnowAnswers

From Noisebridge
(Difference between revisions)
Jump to: navigation, search
(Created page with 'SERVER: <PRE> > REPO=~/git/foo.git > mkdir $REPO > cd $REPO > git init --bare </PRE> LAPTOP: <PRE> $ REMOTE=quux@baz.org $ git remote add origin $REMOTE:$REPO $ git push origin m…')
 
Line 1: Line 1:
 +
__TOC__
 +
 +
= push =
 
SERVER:
 
SERVER:
<PRE>
+
> REPO=~/git/foo.git
> REPO=~/git/foo.git
+
> mkdir $REPO
> mkdir $REPO
+
> cd $REPO
> cd $REPO
+
> git init --bare
> git init --bare
+
</PRE>
+
 
LAPTOP:
 
LAPTOP:
<PRE>
+
$ REMOTE=quux@baz.org
$ REMOTE=quux@baz.org
+
$ git remote add origin $REMOTE:$REPO
$ git remote add origin $REMOTE:$REPO
+
$ git push origin master
$ git push origin master
+
 
</pre>
+
= change =
 +
$ git commit --amend

Revision as of 23:44, 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
Personal tools