Expected Committer Name Git Push Issue

前端 未结 4 1783
情深已故
情深已故 2021-01-01 02:22

I\'m trying to commit/Push some code to GIT, but when I tried to commit the code using SourceTree it gave me an error:

remote: Push rejected.[K
remote: 
rem         


        
4条回答
  •  说谎
    说谎 (楼主)
    2021-01-01 03:02

    Following the example of this blog post (it was for a tag, in your case it is for a branch HEAD), you would need to amend at least just the branch HEAD you want to push:

    git commit --amend --allow-empty --author="LastName, FirstName "
    

    And then push.

提交回复
热议问题