[Insight-developers] Renames in ITK history :)

David Cole david.cole at kitware.com
Tue Aug 10 16:36:06 EDT 2010


Put yourself in that situation, and then do:

git status

It will tell you what files are in what state, and based on that, you can
decide which ones you need to do a 'git add' on.


On Tue, Aug 10, 2010 at 4:32 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:

> But with
> git mv old
>
> do I need to add/commit each file in the directory, or just
> git commit new
>
> Seems logical to me...
>
> Bill
>
>
> On Tue, Aug 10, 2010 at 4:30 PM, David Cole <david.cole at kitware.com>
> wrote:
> > On Tue, Aug 10, 2010 at 4:20 PM, Bill Lorensen <bill.lorensen at gmail.com>
> > wrote:
> >>
> >> I may have other changes I am not ready to commit. So what specific
> >> commit do I use just for these chamnges.
> >>
> >> On Tue, Aug 10, 2010 at 3:54 PM, Matthew McCormick (thewtex)
> >> <matt at mmmccormick.com> wrote:
> >> >
> >> >
> >> > On Tue, Aug 10, 2010 at 2:28 PM, Bill Lorensen <
> bill.lorensen at gmail.com>
> >> > wrote:
> >> >>
> >> >> Let's say old is a directory.
> >> >> I do
> >> >> git mv old new
> >> >>
> >> >> How to I commit? Do I just do
> >> >> git commit new
> >> >>
> >> >
> >> > Just
> >> >   git commit
> >> > works.
> >> >
> >> > I like to do 'git commit -a'  whenever possible because it will catch
> >> > any
> >> > files I forgot to do 'git rm' on.
> >> _______________________________________________
> >> Powered by www.kitware.com
> >>
> >> Visit other Kitware open-source projects at
> >> http://www.kitware.com/opensource/opensource.html
> >>
> >> Kitware offers ITK Training Courses, for more information visit:
> >> http://kitware.com/products/protraining.html
> >>
> >> Please keep messages on-topic and check the ITK FAQ at:
> >> http://www.itk.org/Wiki/ITK_FAQ
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.itk.org/mailman/listinfo/insight-developers
> >
> >
> > As with any git commit, you first do:
> >
> > git add file1
> > git add file2
> > git add ...
> >
> > Then do the git commit and it will only commit the files you've added.
> >
> > I always do "git status" a lot to see what git thinks I've done in
> between
> > all the other git commands. One thing I like about git: when you do a git
> > status, it gives you helpful hints about how to add new files, or how to
> get
> > a file back to its state from the repo.
> >
> >
> > HTH,
> > David
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20100810/5006eac4/attachment.htm>


More information about the Insight-developers mailing list