BGM Posted April 27, 2013 Share Posted April 27, 2013 Hi, At work we have a new project that is utilising visual studio tfs online, and we have chosen to use git. my question i hope is pretty simple. taking the .gitignore file as has been generated here: http://gitignore.io/api/visualstudio and putting it into a visual studio solution with multiple projects, should i place the ignore file into the repo root? solution root? or create copies in each project? thank you Link to comment Share on other sites More sharing options...
0 Karl L. Posted April 27, 2013 Share Posted April 27, 2013 Each Git repository needs its own .gitignore, which is most commonly placed in the root of the repository. In other words, your .gitignore should be in the same directory as your .git folder. The following is a directory listing of the root of the Coreboot Git repository that illustrates my point: $ ls -Altotal 88drwxrwxr-x 2 xorangekiller xorangekiller 4096 Mar 19 10:19 3rdparty-rw-rw-r-- 1 xorangekiller xorangekiller 17987 Mar 19 10:19 COPYINGdrwxrwxr-x 3 xorangekiller xorangekiller 4096 Apr 16 17:47 documentationdrwxrwxr-x 8 xorangekiller xorangekiller 4096 Apr 27 11:12 .git-rw-rw-r-- 1 xorangekiller xorangekiller 1808 Mar 19 10:19 .gitignore-rw-rw-r-- 1 xorangekiller xorangekiller 89 Mar 19 10:19 .gitmodules-rw-rw-r-- 1 xorangekiller xorangekiller 83 Mar 19 10:19 .gitreview-rw-rw-r-- 1 xorangekiller xorangekiller 9667 Mar 19 10:19 Makefile-rw-rw-r-- 1 xorangekiller xorangekiller 15881 Mar 19 10:19 Makefile.incdrwxrwxr-x 8 xorangekiller xorangekiller 4096 Mar 19 10:19 payloads-rw-rw-r-- 1 xorangekiller xorangekiller 2998 Mar 19 10:19 READMEdrwxrwxr-x 15 xorangekiller xorangekiller 4096 Mar 24 15:44 srcdrwxrwxr-x 35 xorangekiller xorangekiller 4096 Mar 19 10:19 util[/CODE] Link to comment Share on other sites More sharing options...
Question
BGM
Hi,
At work we have a new project that is utilising visual studio tfs online, and we have chosen to use git.
my question i hope is pretty simple. taking the .gitignore file as has been generated here: http://gitignore.io/api/visualstudio
and putting it into a visual studio solution with multiple projects, should i place the ignore file into the repo root? solution root? or create copies in each project?
thank you
Link to comment
Share on other sites
1 answer to this question
Recommended Posts