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

Changes not being tracked

Gibran Shah Jan 09, 2017


I just migrated my source code to a new computer. I did it through SourceTree connecting to my BitBucket account.

I have several projects in my Visual Studio 2015 solution. In all except one project, I'm able to modify the source code and have Visual Studio recognize the changes and list them in Team Explorer. When I commit them, they show up as commits in SourceTree. But there's one project for which this is not working. It's my unit test project. For some reason, any changes I do in this project do not get recognized as changes in Team Explorer. I have verified that this project is indeed in the repository under my BitBucket account, but for some reason the changes are not being tracked.

Can anyone suggest why this is happening? Thanks.

2 answers

0 votes
Gibran Shah Jan 10, 2017

Update: it turns out ALL projects are untracked. The unit tests were just the one's a noticed first.

My google research tells me to try: git add -u. When I do that I get the following error message:

error: open("Database/Database.jfm"): Permission denied
error: unable to index file Database/Database.jfm
fatal: updating files failed

I don't know why permissions are all of a sudden denied on Database.jfm. I'm not even sure what that is.

In any case I tried:

git add --ignore-errors.

I tried adding Database.jfm to .gitignore.

But none of that works.

Please help me if you have any insights at all. Thanks.


0 votes
Gibran Shah Jan 11, 2017

Problem solved: I was unaware that adding items to gitignore will do nothing if those items are already being tracked. To untrack Database.jfm I had to remove it from the cache with:

git rm --cache Database/Database.jfm

Suggest an answer

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

[dev team] Sourcetree for Windows 2019 Preview - Dark Theme

Hi folks, While the full post is over on our blog I'd like to share the dark theme we've got planned for 2019 here directly as well to keep the discussion going.  The ...

1,858 views 14 18
Join discussion

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