Git push during build

Jérémie Bertrand's Avatar

Jérémie Bertrand

04 Nov, 2015 06:05 PM

I try to do some git commands during build, like explained here: http://www.appveyor.com/docs/how-to/git-push
But I got the following error :

*** Please tell me who you are.


Run


git config --global user.email "[email blocked]" 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 'appveyor@appvyr-win20122.(none)')
The repo is: https://github.com/laedit/readinglist
And the AppVeyor project: https://ci.appveyor.com/project/laedit/readinglist

I don't know what I am missing.

  1. Support Staff 1 Posted by Feodor Fitsner on 04 Nov, 2015 06:27 PM

    Feodor Fitsner's Avatar

    Add commands setting up git username and email.

    - Feodor

  2. 2 Posted by Jérémie Bertran... on 04 Nov, 2015 08:09 PM

    Jérémie Bertrand's Avatar

    Thanks a lot, I don't know why I was thinking that must be automatic.

    I have fixed that but I run in another problem:
    The push seems good, no error message, but the github project isn't updated.

    The remote exists, so I wonder if this is related to the access token: is the "public_repo" right ok?
    Or other rights are necessary?

  3. Support Staff 3 Posted by Feodor Fitsner on 04 Nov, 2015 09:10 PM

    Feodor Fitsner's Avatar

    If it's public repo then yes, that should be enough.

    Try doing the entire sequence locally to see if you missing something. Also, you can login to build worker via RDP: http://www.appveyor.com/docs/how-to/rdp-to-build-worker

    Another thing to note - if access token is defined as "secure variable" and it's PR build it won't be decrypted.

  4. 4 Posted by Jérémie Bertran... on 05 Nov, 2015 06:37 AM

    Jérémie Bertrand's Avatar

    Thanks for the tips.
    I haven't been able to connect with RDP ("credentials did not work") but I found what I have missed: the local branch wasn't master but a detached HEAD. So a git checkout master have fixed it.

    I will modify the docs to add some of what I learn from this :)

    And again thanks a lot for your help and your amazing tool!

  5. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac