Error connecting database to a new, cloned Git repository, it says it has pending changes
khkiley
Posts: 4 Bronze 1
I created an empty Git repository, cloned it using Github Desktop for windows, and when I specify the target folder while connecting it to a database I get the following error:
The repository has pending changes. You need to commit or stash the changes before linking.
But there are no pending changes to commit, it is a new empty repository with only a readme. Github Desktop reports there are no pending changes.
I am using 7.1.5.10110
Thanks.
The repository has pending changes. You need to commit or stash the changes before linking.
But there are no pending changes to commit, it is a new empty repository with only a readme. Github Desktop reports there are no pending changes.
I am using 7.1.5.10110
Thanks.
Tagged:
Answers
If that's the case could you please contact support and send the folder for your repository?
I've uninstalled Redgate source control, deleted the folder in appdata, tried again - same issue.
On branch development
Your branch is up to date with 'origin/development'.
nothing to commit, working tree clean
Sounds like this might be a bug, unless anyone has found a way to resolve this? We are using GIT for the source control. If I select to use just a working directory during the setup process, it works, but then we don't get the "pull repository" button and would have to manage using the source control features outside of SSMS which is NOT what we desire.
On branch master
Your branch is up to date with 'origin/master'
Untracked files:
(use "git add <file>..." to include in what will be committed)
develop/
rc/
master/
nothing added to commit but untracked files present (use "git add" to track)
My primary scripts directory (being referenced above) is:
C:\Users\dtucker\Documents\Schema.RSMS
SourceTree populates this folder with whatever I've selected as my current branch. ALSO contained in this folder are three subfolders, which allow me to pull representations of 'develop', 'rc', and 'master' branches for comparison, and for use by SSC-linked databases representing each of those branches.
So yes, my scripts folder contains untracked files (folders, actually) which I don't want tracked. Is SSC mistaking these for "pending changes"?
Database Administrator / Software Engineer
Nelnet Business Solutions - FACTS-SIS
It's mistaking untracked files for pending changes.
Database Administrator / Software Engineer
Nelnet Business Solutions - FACTS-SIS
You are right, I saved the sql compare project file under the sql source control git repository which is untracked file for git. And move the project file of sql compare to another folder solve this problem.