Failed to lock refs/heads/master

后端 未结 1 851
隐瞒了意图╮
隐瞒了意图╮ 2020-12-06 09:55

I am relativly new to git and am facing this problem. The git push command shows the error below. I will explain to you from the begining what i had been trying to do . I cr

相关标签:
1条回答
  • 2020-12-06 10:53

    You have to update the HEAD known by git. It will be transparent for you.

    1 - Go to master branch

    git checkout master
    

    2 - Get updates from the remote to your local repository

    git fetch
    

    3 - Update your local repository using rebase instead of merge. See there difference between git pull and git rebase

    git rebase origin/master
    

    4 - Push your master branch

    git push origin master:master
    
    0 讨论(0)
提交回复
热议问题