How to track an ignored file

I ignored several files time ago, but actully I realised I need to track them again.

I can't find de way to do this.

Thanks in advance.

1 answer

1 accepted

Change the filter at the top of the file status view to 'Show Ignored', then right-click the files you want to track and click 'Add'.

[Edit]This is for ad-hoc choosing files to add, but if you actually want to undo the ignoring of those types of files entirely you have to edit your ignore list. If you ignored the files just for this repository, you do it via Settings > Advanced > Edit (next to the Repository-specific Ignore List), or if you ignored the files globally you do it in Preferences (mac) or Tools > Options (Windows), then go to the Git or Mercurial tabs and click the Edit File button next to the Global Ignore List field.

That helped a lot. The files can now be tracked again.

Hi Steve, thank you for posting this answer I've been having a very similar issue and have not been able to find a solution.

I see the option to add a file, but how to I add a whole directory back to index?

I've modified my gitignore, however the new changes have no effect.

Thanks again!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

649 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you