Ubuntu and setups

git config temporal username

자월현 2021. 7. 14.

https://stackoverflow.com/questions/22058041/commit-without-setting-user-email-and-user-name/32794854

 

Commit without setting user.email and user.name

I try to commit like this git commit --author='Paul Draper <my@email.org>' -m 'My commit message' but I get *** Please tell me who you are. Run git config --global user.email "you@examp...</my@email.org>

stackoverflow.com

git -c user.name='Paul Draper' -c user.email='my@email.org' commit -m '...'

이 방식대로 commit 했을 경우, pull, push 등 할때마다 -c 를 붙여줘야하기 때문에, 사실 alias를 등록해놓는것이 낫다.

'Ubuntu and setups' 카테고리의 다른 글

ubuntu disk usage by user  (0) 2021.08.11
ubuntu user 만들기  (0) 2021.07.31
mount disk in ubuntu + conda pip errors  (0) 2021.07.05
210504 NVIDIA CUDA installation  (0) 2021.05.04
vncserver setting, ssh 터널링 등  (0) 2021.01.25

댓글