git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Jacob Helwig" <jacob.helwig@gmail.com>
To: Zorba <cr@altmore.co.uk>
Cc: git@vger.kernel.org
Subject: Re: is there an easier way to do this ?
Date: Mon, 29 Dec 2008 19:46:14 -0800	[thread overview]
Message-ID: <8c9a060812291946w5a38d1a1iefa28679e24347bf@mail.gmail.com> (raw)
In-Reply-To: <gjc52u$ehc$4@ger.gmane.org>

On Mon, Dec 29, 2008 at 19:37, Zorba <cr@altmore.co.uk> wrote:
> ok, now I'm in this for real, archiving versions of our website project (5k
> files approx)
>
> so here is the workflow:
>
> - copy version 1 files into GIT dir
>
> - open git bash
>
> $ git init
>
> $ git add .
>
> $ git commit -m "version1"
>
> all vanilla ? cool
> next job = store version 2, so delete version 1 files from GIT dir, copy in
> version 2
> version2 has different files from 1 - which ones? Out of 5k files could be
> 1% = 50 new ones, and same amount removed. Why should I care, with such a
> powerful friend as git around, n'est pas?
> THIS TIME we are going to be CLEVER and use "-a" flag on commit to pick up
> any files that have been REMOVED (or "deleted" in git-speak)
>
> $ git commit -a -m "version2"
>
> BUT this does not pick up any new ones that have been added,
>
> and when we run
>
> $ git status > ../git_status.txt
>
> these are referred to as "untracked files"
> only problem there are 50 ish
> is there not another flag on git commit to treat any untracked file as a new
> file ?
> (would save me typing or creating a list out of these untracked ones and
> feeding them into git add)
>
> I know, I realise now I should have looked up git-commit in the manual - in
> case its not there, pls enlighten me !
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

git help add

Look at -A

  reply	other threads:[~2008-12-30  3:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-30  3:37 is there an easier way to do this ? Zorba
2008-12-30  3:46 ` Jacob Helwig [this message]
2008-12-30  3:51 ` Zorba
2008-12-30  4:00   ` Jacob Helwig
2008-12-30  4:26     ` Jeff Whiteside
2008-12-30 23:03 ` Jakub Narebski
2008-12-30 23:20   ` Zorba
2009-01-01 16:55     ` Johannes Schindelin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8c9a060812291946w5a38d1a1iefa28679e24347bf@mail.gmail.com \
    --to=jacob.helwig@gmail.com \
    --cc=cr@altmore.co.uk \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).