incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject git commit: [#5497] more instructions for getting started with git
Date Wed, 19 Dec 2012 22:03:06 GMT
Updated Branches:
  refs/heads/db/5497 [created] e274667e5


[#5497] more instructions for getting started with git

* use generic 'myproject' since existing dirs won't match suggested_clone_dest_path
* add: git add
* add: --set-upstream


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/e274667e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/e274667e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/e274667e

Branch: refs/heads/db/5497
Commit: e274667e57308c366aa0c1a1ddf67044bf470ebe
Parents: dfb062b
Author: Dave Brondsema <dbrondsema@geek.net>
Authored: Wed Dec 19 22:01:26 2012 +0000
Committer: Dave Brondsema <dbrondsema@geek.net>
Committed: Wed Dec 19 22:01:26 2012 +0000

----------------------------------------------------------------------
 ForgeGit/forgegit/templates/git/index.html |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/e274667e/ForgeGit/forgegit/templates/git/index.html
----------------------------------------------------------------------
diff --git a/ForgeGit/forgegit/templates/git/index.html b/ForgeGit/forgegit/templates/git/index.html
index c5f37a5..98a4e4e 100644
--- a/ForgeGit/forgegit/templates/git/index.html
+++ b/ForgeGit/forgegit/templates/git/index.html
@@ -32,26 +32,30 @@
     <div class="message error scm-empty-repo">
       <h6>Empty Repository</h6>
       <div class="content">
-        It looks like this Git repository doesn't have any files in it. Let's commit your
project code now.
+        It looks like this Git repository doesn't have any files in it. Let's commit your
project code now.  Just run the commands below.
       </div>
     </div>
 
     <h2>First time using Git</h2>
 
     <div class="codehilite">
-      <pre>cd {{c.app.repo.suggested_clone_dest_path()}}
+      <pre>cd myproject
 git init
+# add all your files.  Use can use specific filenames or directories instead of '.'
+git add .
 git commit -a -m 'Initial commit'
 git remote add origin {{c.app.repo.clone_url('rw', c.user.username)}}
-git push origin master</pre>
+git push origin master
+git branch --set-upstream master origin/master  # so 'git pull' will work later</pre>
     </div>
 
-    <h2>Existing Repository</h2>
+    <h2>Existing repository using Git</h2>
 
     <div class="codehilite">
-      <pre>cd {{c.app.repo.suggested_clone_dest_path()}}
+      <pre>cd myproject
 git remote add origin {{c.app.repo.clone_url('rw', c.user.username)}}
-git push origin master</pre>
+git push origin master
+git branch --set-upstream master origin/master  # so 'git pull' will work later</pre>
     </div>
     &nbsp;
     <div class="message info scm-ssh-key">


Mime
View raw message