0

I try the below commands via Jenkins:

cd C:\Users\C51539A\Downloads\TestRepository

  1. git config --global user.name "Ajith-Raman"
  2. git init (optional)
  3. git add .
  4. git commit -m "Test Results Updated"
  5. git checkout -b master (optional)
  6. git push -u origin master (Also tried "git push origin master", "git push origin HEAD:master", "git push origin HEAD:refs/remotes/origin/master")

Commands till commit succeed. But push is stuck. Kindly find the screenshot below:enter image description here

Please help.

Note: git remote -v and git show-ref display the appropriate results.

1 Answers1

0

"git checkout -b master" is used to create a new branch. So, you are getting master already exists. Remove -b and try git checkout master. This should resolve your problem.

Sa Gar
  • 56
  • 3