File git history not available after repositiory url changed

Answered

I renamed the project in Github, and now in Rider when I "right click -> git -> compare with..." I can only see commits from the moment of renaming. All the project history is lost for me in that window.

BUT! I can still see all the history of commits just fine in "Repository/Log" panel. I can also commit without problems. The only weird thing is that Rider keeps displaying popup about external files being not added to git or something.. but it commits ok.

Can you help me please? 

0
5 comments

Hi Wilczarz

thank you for contacting us! Could you please provide a bit more details? What exactly did you rename - repository name or project folder, or .csproj file? How exactly did you do it? What version of Rider do you use? How did you connect with a new repository link? 

Thank you in advance. 

0

I renamed the project on github, so repository url changed. I edited .git/config to a new URL and I could commit again. I don't remember changing the project name but I probably did it too. I did not edit csproj manually. I am using Rider 2019.3.X on Catalina 10.15.1.

Guys, there is something really wrong with Local history. Today I upgraded Rider to 2019.3.3 and now all my files don't have the local history. I did not touch git settings or any other setting at all. Now when I make changes to the code, new versions appear in local history but the old ones are lost! 

This is absolutely terrible! :/

0

Wilczarz could you please elaborate a bit more on what exactly was done on a local site?
Speaking of Right-click on file | Git | Compare with and list of revision - it is information that is stored locally, therefore rename of a remote repository cannot cause such behavior. Under "Compare with," you can see revisions (commits) which affected a file, so there is a chance that a file which history you are checking perhaps wasn't committed before the repository rename.

Local History, which can be found under Right-click on file | Local History | Show History is not saved in case of update.

0

Hi Ruslan Kuleshov, I just checked and every single file in my project has the git history available only from the moment of the rename (see the screenshot)

I wish I could give you more details but I don't remember doing anything unusual. Except for the fact that I had to edit .git/config file. 

I also remember that the info about external files that can't be added to git wouldn't go away when I used Rider. I think I went to other git client (Sourcetree) and make a commit+push and then it went away. I don't remember more details, it was a while ago...

0

Wilczarz thank you for the provided screenshot. 
I have renamed test remote repository and couldn't reproduce the behavior. There is something happened locally which led to such behavior.
If the behavior appears again - please feel free to submit a support ticket and we will be happy to check logs for you.

0

Please sign in to leave a comment.