lardemua / atlascar2

Core packages for the LAR DEMUA Atlas Project
6 stars 1 forks source link

Establish how to commit with the correct author #17

Open tmralmeida opened 5 years ago

tmralmeida commented 5 years ago

@bernardomig when we try to push something by our computer, the author is you! Can you solve this, buddy?

Hug,

miguelriemoliveira commented 5 years ago

Hi @bernardomig ,

He means the computer in hte atlascar2. It should have some strange github auto configuration or something. Thanks.

bernardomig commented 5 years ago

This is due to the default configuration of git, because the default author is myself. The solution is then to remove the default configuration of git with git config -e --global, and comment the name and email, like so:

# This is Git's per-user configuration file.
[user]
#       name = Some User
#       email = user@example.com

When committing, add the option --author to the git commit command, like so:

git commit --author "someone <someone@ua.pt>" --message "commit"
miguelriemoliveira commented 5 years ago

Hi @bernardomig ,

thanks. You said how to do it but did you (or @tmralmeida ) did it on the ATLASCAR2?

The issue should remain open until then ...

Sorry for being a "chato" :)