I want to do the following via command line script in teamcity build configuration step:
git rebase master
git push origin <branchname>:<remotebranchname>
In this case, it does not create a specific branch on teamcity agent so not sure, what should be branch name. But just running
git push
throws following exception:
*** Please tell me who you are. Run
git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity. Omit --global to set the identity only in this repository.
fatal: unable to auto-detect email address (got 'root@teamcity-xxxxxx(none)')
Host key verification failed. fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. Process exited with code 128 Process exited with code 128 (Step: Command Line) Step Command Line failed