github - Change the author of last commit in Git(pushed remotely) -
i trying change author name of last commit. mentioned in change commit author @ 1 specific commit, executing git commit --amend --author="author name <email@address.com>"
command.
in git log can see name , email have been changed.
when executing git push -f
, giving me following error
remote: prevent losing history, non-fast-forward updates rejected. ! [remote rejected] dev -> dev (pre-receive hook declined)
any idea how can push this.
thanks,
shantanu
your remote server preventing push. need (temporarily) configure permit pushing non-fast-forward changes branch achieve want. how depends on server using; example, if it's bare git repository on server can change git config receive.denynonfastforwards false
.
Comments
Post a Comment