Skip to content

Use GIT_AUTHOR_EMAIL and GIT_AUTHOR_NAME environment variables during commit #475

Description

@astanoszek

One of the ways to provide author name of the commiter in git is to use the GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL environment variables.

It would be great if gitui used them also.

Activity

  1. extrawurst commented on Dec 30, 2020

    @extrawurst
    Collaborator

    Hi @astanoszek thanks for your interest in gitui. I found those in the documentation: https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables

    did not even know they existed 🙈 can you give me a Little more insight when/why these are preferred over the git config?

  2. astanoszek commented on Dec 30, 2020

    @astanoszek
    Author

    Git config is great if you work with local repository. In my case I sometimes work in repository on the remote machine, which is shared by few people. In such a case I set the environment variable in my .ssh key and commit using my name.

    I know that it is questionable practice and everybody should use local branches but you know - there are specific cases.

  3. stale commented on Mar 30, 2021

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  4. locked and limited conversation to collaborators on Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions