[Bf-committers] Git issues and workarounds

Sergey Sharybin sergey.vfx at gmail.com
Tue Nov 26 21:39:37 CET 2013


I never had issues with using -a. And for now doing `git commit -a` COULD
cause issues meanshile `git commit .` DOES give issues on every call from
the working dir root.


On Wed, Nov 27, 2013 at 2:11 AM, GSR <gsr.b3d at infernal-iceberg.com> wrote:

> Hi,
> sergey.vfx at gmail.com (2013-11-23 at 0329.22 +0600):
> > If you're using `git add .` or `git commit .` stop doing this. Two
> reasons
> > for this.
> >
> > First one is that this will stage changes to submodules and place them
> into
> > commit (without notifying you about this is commit comments).
> >
> > Second one that AFAIR it'll add all untracked files to your commit.
> > Including possible backup files, core dumps and so.
> >
> > Use `git commit -a` to include changes to all tracked files and take care
> > of using `git add /path/to/specific/file` if you need to add new files to
> > the repo.
>
> "git commit -a" also should be avoided. It may not cause issues of the
> same level than "git commit ." but it will keep on causing the issues
> of a single commit changing unrelated things or even errors.
>
> GSR
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
With best regards, Sergey Sharybin


More information about the Bf-committers mailing list