Changes not being tracked


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

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.


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
Community showcase
Published Oct 23, 2018 in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

1,114 views 4 2
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