Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Steve Arrants 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 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