Use GIT_AUTHOR_EMAIL and GIT_AUTHOR_NAME environment variables during commit #940
Replies: 3 comments 3 replies
-
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? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
very interesting. I guess it could be done pretty central in |
Beta Was this translation helpful? Give feedback.
-
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.
Beta Was this translation helpful? Give feedback.
All reactions