The default Git username and user email address on our Stacks are the following:
git config --global user.email "firstname.lastname@example.org" git config --global user.name "J. Doe (https://www.git-tower.com/learn/git/faq/change-author-name-email)"
If you want to “push back” (
git push) any commits to your own repo from Bitrise while running your build, you have to set your own username and the email address. Here is how to do it!
- Add a
Scriptstep as the very first step in your workflow. The Step has to come first before you’d
git commit. This way you can make sure any changes you make to the current build will be attached to a commit associated with your username and email address.
Add the following script to the
Script inputfield and insert your own user name and email to the respective fields:
git config --global user.name "User Name" git config --global user.email "email@example.com"
- Start a build.
If all went well, you should see the changes in your repository in your Git provider. The new username and email address will be visible for all future commits you push from your builds to Github.