Git push failed with rejected
maheshnalawade1986 opened this issue · 1 comments
maheshnalawade1986 commented
Hi team,
Facing issue when using this module in my playbook to push the code to repo.
Code:
- name: push
lvrfrc87.git_acp:
path: "/tmp/gitcpone"
branch: "{{ branch_name }}
comment: "test"
url: "https://testurl"
pull: true
Error:-
To https://testurl
![rejected] develop -> develop (fetch first)
error: failed to push some refs to 'https://testurl'
hint: Updates were rejected because the remote contains work that you do not have locally.This is usually caused by another repository pushing to the same ref.You may want to first integrate the remote charges (e.g.,'git pull...') before pushing again.See the 'Note about fast-forwards' in 'git push --help' for details
lvrfrc87 commented
Hi @maheshnalawade1986, Like the error is saying, you would need to pull first then you should be able to commit and push