Git:error: src refspec master does not match any.error: failed to push some refs to ‘XXX‘

Git Error

今天在Jenkins中使用Git时遇到了一个坑…
Git Error:src refspec master does not match any.error: failed to push some refs to 'XXX’
由于这段时间在做DevOps,需要在Jenkins中使用Git向Github中提交代码所以有了以上报错…
shell脚本如下:

#!/bin/bash
git config --local user.email "[email protected]"
git config --local user.name "KING"
git remote set-url origin https://xxx:[email protected]/xxx/xxx.git
# git pull origin master
git add deploy/pom.xml
git commit -m "jenki

你可能感兴趣的:(Jenkins,git,github,jenkins)