Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Git Settings in VS 2013

Posted on 2014-09-20
5
131 Views
Last Modified: 2015-05-04
I'm new with use of Git in Visual Studio.

I've created a repository in my web space and syncronization seems to work correctly. What I'm not able to configure is the exclusion of some folders from commits operations.
In VS ide I've found the Git Settings panel divided in Global Settings and Repository Settings. The first contains my credentials and the second one has two files called .gitignore and .gitattributes. I've attached .gitignore. The last two lines of the file contains folders to exclude. Every time I commit Installazioni and Simboli folders are included and i have to exclude manually. Someone can help me?
gitIgnore.txt
0
Comment
Question by:fantamen
  • 3
  • 2
5 Comments
 
LVL 29

Expert Comment

by:pepr
ID: 40339575
Were the Insallazioni and Simboli folders added earlier? If yes, the .gitignore does not apply to them.
0
 

Author Comment

by:fantamen
ID: 40339745
It's possible. However is there a method to ignore these files?

Thank you
0
 
LVL 29

Accepted Solution

by:
pepr earned 500 total points
ID: 40340327
You can tell git to forget it as if it was never added. For that, you can use a form of git rm command with --cache argument -- see http://git-scm.com/docs/git-rm . The command
git rm -r --cache Installazioni

Open in new window

without --cache would remove the directory physically. However, with --cache it will remove the directory only from the observed ones (cached, in index). The -r stands for recursive (that is also subdirectories.

Once removed from the index, the .gitignore will tell git to ignore the directory.
0
 

Author Closing Comment

by:fantamen
ID: 40758535
Thank you
0
 
LVL 29

Expert Comment

by:pepr
ID: 40759597
You are welcome ;)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
This article will show, step by step, how to integrate R code into a R Sweave document
This video teaches viewers about errors in exception handling.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question