git upstream

git remote add upstream https://github.com/SchedMD/slurm

git fetch upstream

git rebase upstream/master

git push

git push --tags

ppju:pbspro apple$ git commit -m "rebase"
error: gpg failed to sign the data
fatal: failed to write commit object

Solution:

test -r ~/.bash_profile && echo 'export GPG_TTY=$(tty)' >> ~/.bash_profile

echo 'export GPG_TTY=$(tty)' >> ~/.profile

原文地址:https://www.cnblogs.com/ppju/p/11953166.html