git使用问题

问题1 ! [remote rejected] (no new changes

  • 描述:
    ! [remote rejected] <本地分支名>-> refs/for/<远程分支名>(no new changes)
admin@DESKTOP-XXX MINGW64 /d/Silicon/developer/sdks/gecko_sdk_suite/v2.7/app/build/Zigbee-Smart-Gate/GNU ARM v7.2.1 - Default - XXX(XXX)
$ git push comgerrit XXX:refs/for/XXX
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote: Processing changes: refs: 1, done
To ssh://170.170.X.X.X:X/rtos/XXX.git
 ! [remote rejected] syn_dev -> refs/for/zigbeegate_dev (no new changes)
error: failed to push some refs to 'ssh://170.X.X.X:X/rtos/XXX.git'

解决:执行git commit --amend生成新的changeId,在此提交即可

上一篇:Oracle数据库过程、函数、包、触发器


下一篇:Git:Your local changes would be overwritten by merge.