Solved

Git Settings in VS 2013

Posted on 2014-09-20
5
136 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
[X]
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
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Input parameteres to DragOver 2 38
troubleshoot a python script 8 77
How to repeat the data 4 30
How can I do Unit Testing with Session ? 1 23
The purpose of this article is to demonstrate how we can use conditional statements using Python.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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