Getting rid of '… does not point to a valid object' for an old git branch

前端 未结 13 2005
不知归路
不知归路 2020-12-13 03:51

I have a fork of a Git repo and my clone appears to have an issue with an old, no longer existant, branch. I keep seeing this message:

error: refs/heads/t_1140

13条回答
  •  北海茫月
    2020-12-13 04:03

    I'm giving my two cents for whoever is using Visual Studio. I had this issue while trying to delete a local branch and running the following command through the command line solved it:

    git branch -D 
    

提交回复
热议问题