Push new repo to remote.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 03 Nov 2011 14:36:14 +0200
changeset 1076 9b2eb3c96d84
parent 1074 215246e12572
child 1080 59c7141df3b2
Push new repo to remote.
git.rst
--- a/git.rst	Wed Nov 02 15:08:44 2011 +0200
+++ b/git.rst	Thu Nov 03 14:36:14 2011 +0200
@@ -175,6 +175,18 @@
   $ export GIT_CURL_VERBOSE=1
   $ git ...
 
+Push new repo to remote.
+========================
+::
+
+  $ mkdir $REPO
+  $ cd $REPO
+  $ git init
+  $ git add .
+  $ git commit -m "Initial commit"
+  $ git remote add origin https://$USER:$PASS@$HOST/$REPO
+  $ git push -u origin master
+
 Using git to work with SVN offline.
 ===================================