Git error due to BSOD on Host machine


I am working on Ubuntu which is running on Windows’ VBox, unfortunately my Windows gave ne Blue screen error when I pushing my commits to my git repository and later I got several error due to this, the errors are :

Your branch is based on ‘origin/master’, but the upstream is gone.
(use “git branch –unset-upstream” to fixup)

Ok then I tried to run

$ git branch –unset-upstream

Everything just like in normal condition now:

yusuf@yusuf-VirtualBox:~/dddd/ddd-shop$ git status
On branch master
nothing to commit, working directory clean

But I realized that something is still error when I tested the push command

yusuf@yusuf-VirtualBox:~/dddd/ddd-shop$ git push origin master
error: unable to resolve reference refs/remotes/origin/master: Success
error: Cannot lock the ref ‘refs/remotes/origin/master’.
Everything up-to-date

yusuf@yusuf-VirtualBox:~/dddd/ddd-shop$ git pull origin master
From gitlab.com:mhyusufibrahim/bagist-shop
* branch master -> FETCH_HEAD
error: unable to resolve reference refs/remotes/origin/master: No such file or directory
! [new branch] master -> origin/master (unable to update local ref)

Here is to fix that :

yusuf@yusuf-VirtualBox:~/dddd/ddd-shop$ rm .git/refs/remotes/origin/master
yusuf@yusuf-VirtualBox:~/dddd/ddd-shop$ git fetch

yusuf@yusuf-VirtualBox:~/dddd/ddd-shop$ git push origin master
Everything up-to-date

 

One thought on “Git error due to BSOD on Host machine

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s