Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F2DC2DBCA for ; Thu, 3 Jan 2013 16:02:50 +0000 (UTC) Received: (qmail 78176 invoked by uid 500); 3 Jan 2013 16:02:50 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 78158 invoked by uid 500); 3 Jan 2013 16:02:50 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 78150 invoked by uid 99); 3 Jan 2013 16:02:50 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jan 2013 16:02:50 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 55847822000; Thu, 3 Jan 2013 16:02:50 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: johnsca@apache.org To: allura-commits@incubator.apache.org X-Mailer: ASF-Git Admin Mailer Subject: git commit: [#5497] more instructions for getting started with git Message-Id: <20130103160250.55847822000@tyr.zones.apache.org> Date: Thu, 3 Jan 2013 16:02:50 +0000 (UTC) Updated Branches: refs/heads/master dafa63a64 -> 763a503ba [#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/763a503b Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/763a503b Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/763a503b Branch: refs/heads/master Commit: 763a503baeeef0d1c1de84efc2aeb77d3c70fe3b Parents: dafa63a Author: Dave Brondsema Authored: Wed Dec 19 22:01:26 2012 +0000 Committer: Cory Johns Committed: Thu Jan 3 16:02:21 2013 +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/763a503b/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 @@
Empty Repository
- 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.

First time using Git

-
cd {{c.app.repo.suggested_clone_dest_path()}}
+      
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
+git push origin master +git branch --set-upstream master origin/master # so 'git pull' will work later
-

Existing Repository

+

Existing repository using Git

-
cd {{c.app.repo.suggested_clone_dest_path()}}
+      
cd myproject
 git remote add origin {{c.app.repo.clone_url('rw', c.user.username)}}
-git push origin master
+git push origin master +git branch --set-upstream master origin/master # so 'git pull' will work later