Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Establish how to commit with the correct author #17

Open
tmralmeida opened this issue May 31, 2019 · 3 comments
Open

Establish how to commit with the correct author #17

tmralmeida opened this issue May 31, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@tmralmeida
Copy link
Collaborator

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

Hug,

@miguelriemoliveira miguelriemoliveira added the bug Something isn't working label May 31, 2019
@miguelriemoliveira
Copy link
Member

Hi @bernardomig ,

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

@bernardomig
Copy link
Collaborator

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 = [email protected]

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

git commit --author "someone <[email protected]>" --message "commit"

@miguelriemoliveira
Copy link
Member

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" :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants