Solved

Git Settings in VS 2013

Posted on 2014-09-20
5
118 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 28

Expert Comment

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

Author Comment

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

Thank you
0
 
LVL 28

Accepted Solution

by:
pepr earned 500 total points
Comment Utility
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
Comment Utility
Thank you
0
 
LVL 28

Expert Comment

by:pepr
Comment Utility
You are welcome ;)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

762 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now