Here is what I have tried so far:
I:\Work\bitbucket\test.gadget [master]> git remote update
Fetching origin
I:\Work\bitbucket\test.gadget [master]> git branch -r
origin/HEAD -> origin/master
origin/imagesTest
origin/master
origin/work2
I:\Work\bitbucket\test.gadget [master]> git push origin :imagesTest
Password for 'https://[email protected]':
error: unable to delete 'imagesTest': remote ref does not exist
error: failed to push some refs to 'https://[email protected]/c_b/test.gadget.git'
I:\Work\bitbucket\test.gadget [master]>
How do I purge the reference to imagesTest from my local repository?
(Yes, I could start by cloning the remote repos. again, but I'd rather clean up the local copy...)
Thanks for any insights...
Remote branch was probably deleted by another person, but your local repo isn't aware of this until you run a git fetch --prune
.
This command will delete from your local repo branches that doesn't exists anymore on remote.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With