It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Stop tracking marks file for deletion

J Mar 31, 2014

I want to stop tracking a file so I can then ignore it. When I do stop tracking, it puts it in my index with a RED circle for deletion.. reading online it seems it should be putting a question mark instead, I'm afraid it'll delete the file.

What am I doing wrong?

3 answers

0 votes
Seth Mar 31, 2014

I'm not sure exactly what you are looking for, but what you describe will delete the file from the repository, but not from your working copy. In other words, the file will still be in the directory you are modifying, but if someone was to clone your repository, they wouldn't have the file at all.

I don't know of any way to ignore a file in your working copy that exists in the repository.

0 votes
J Mar 31, 2014

Well, isn't that what gitignore command is(Which worked in the command line)

It allows me to ignore the changes I make locally, but keep the file in the repo. For example I'm using this to hard code my ID and PW in a form, but obviously I don't want to check it in to git.. So this way this login file is ignored...

I was able to do it in the command line, just curious why it's not working with sourcetree.

0 votes
Seth Mar 31, 2014

It's just a matter of misunderstanding the command. For some reason Atlassian appears to have made the decision to disable ignoring tracked files via the UI. "Stop tracking" is a different, but still important, feature.

I expect ignoring files like this is a rare occurance. You'll just have to rely on the command line, I think.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

450 views 0 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you