Untracked files after clone

529 views
Skip to first unread message

Brian Low

unread,
Mar 4, 2012, 12:53:25 PM3/4/12
to git-t...@googlegroups.com
After cloning (or quick-cloning) a TFS repository I have several folders that are untracked:

C:\Dev\myproject>git status
# On branch master
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#       Packages/CommonServiceLocator.1.0/
#       Packages/EntityFramework.4.2.0.0/
#       Packages/Moq.4.0.10827/
#       Packages/Unity.2.1.505.0/
#       Packages/Unity.Mvc3.1.1/
#       Packages/UnityConfiguration.1.4.1/
#       Packages/iTextSharp.5.1.3/
#       Packages/log4net.1.2.11/
nothing added to commit but untracked files present (use "git add" to track)

Interestingly, there are other Packages subfolders that are tracked - exclusively packages that were added very early in the project. 

Thanks,
Brian

Sean M. Collins

unread,
Mar 4, 2012, 1:44:32 PM3/4/12
to git-t...@googlegroups.com
Do you think some of the packages were added to TFS, and some were not?

http://www.xavierdecoster.com/post/2011/10/17/Tell-TFS-not-to-add-NuGet-packages-to-source-control.aspx

--
Sean M. Collins

Brian Low

unread,
Mar 6, 2012, 12:48:54 AM3/6/12
to git-t...@googlegroups.com
Thanks for the link. Unfortunately we don't have any clocked folders. Any other ideas?

Matt Burke

unread,
Mar 7, 2012, 12:26:44 PM3/7/12
to git-t...@googlegroups.com
It looks like nuget is fetching packages between when you `git tfs
clone` and `git status`. I haven't used nuget very much, and
definitely not recently.. is there a hook that's automatically pulling
in the packages when the packages file hits disk? Or did you
open/build the solution in between cloning and statusing?

I would guess that your solution will be to add a .gitignore file:

Packages/

--
Matt

> --
> You received this message because you are subscribed to the Google Groups
> "git-tfs-dev" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/git-tfs-dev/-/P91mAvjd0GYJ.
> To post to this group, send email to git-t...@googlegroups.com.
> To unsubscribe from this group, send email to
> git-tfs-dev...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/git-tfs-dev?hl=en.

Reply all
Reply to author
Forward
0 new messages