앱 Application/안드로이드 Android

mac에서 android studio git commit할 때 기본 user 변경하기

Tap to restart 2021. 1. 6. 16:00
반응형

안드로이드 스튜디오에서 git 커밋을 할 때 author명이 있다.

 

Git Author

저 부분을 입력을 안 하면 git 기본 username이 적용된다.

 

/Users/username/.gitconfig

이란 파일이 있다.

파일을 열어보면 아래와 같다.

[core]
	autocrlf = input
	excludesfile = /Users/taptorestart/.gitignore_global
[user]
	name = taptorestart
	email = taptorestart@gmail.com
[commit]
	template = /Users/taptorestart/.stCommitMsg
[filter "lfs"]
	clean = git-lfs clean -- %f
	smudge = git-lfs smudge -- %f
	process = git-lfs filter-process
	required = true

 

여기서 user가 중요하다.

이 user name, email 정보로 안드로이드 스튜디오 커밋이 된다.

 

특별히 지정하지 않으면 입력되는 기본값이라고 볼 수 있다.

 

원하는 user 이름과 메일로 변경하면 된다.

아니면 매번 커밋할 때 원하는 작성자명을 git author칸에 입력하면 된다.

입력할 때는 taptorestart <taptorestart@gmail.com> 형태로 입력해야 에러가 안 난다.

 

 

반응형