Why does Bitbucket ask me to commit after I clone a repository

Steve Arrants
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 3, 2022

If I close a repository, Sourcetree asks me to commit all the files back to the repository. I've made no changes, so why it is asking me to commit the files?

1 answer

0 votes
An Nguyen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 16, 2022

Sourcetree is just a wrapper for Git. There is a good chance that your repository is missing (or not configured) ".gitignore" file. The most common occurrence that I see is IDE specific files and folders like [.vs, .code, .ideal] are not include in the ".gitignore". So if you just open the project to look at code, AND made no changes yourself, your IDE could still make changes to setting or config files in the repo. Therefore Git and Sourcetree will see a difference and will ask you to commit.

 

There are some complications like if the ".gitconfig" is updated then you will have to update the cached (tracked) files so that Git and stop tracking it. 

 

I would need more specifics to be able to help more.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events