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

공용 서버에서 특정 계정으로 git commit 하기 #4

Open
tmfdk333 opened this issue Mar 13, 2019 · 0 comments
Open

공용 서버에서 특정 계정으로 git commit 하기 #4

tmfdk333 opened this issue Mar 13, 2019 · 0 comments
Assignees
Labels
Git Git / Github

Comments

@tmfdk333
Copy link
Owner

공용 서버에서 특정 계정으로 git commit 하기

  • For only a single command
    • 공용 서버에서 사용하는 프로젝트에서 config 설정할 수 없는 경우 일회성 명령 사용
git -c user.name="seula.k" -c user.email="seula.k@navercorp.com commit -m "commit message"
  • For single repository
    • 프로젝트마다 다른 이름과 이메일 주소를 사용하고 싶은 경우
git config user.name "tmfdk333"
git config user.email "tmfdk333@gmail.com"
  • For every repository on your computer
    • 시스템 전체에서 사용자 설정을 할 경우
git config --global user.name "tmfdk333"
git config --global user.email "tmfdk333@gmail.com"
  • 설정 확인
    • Git은 같은 키를 여러 파일(/etc/config, ~/.gitconfig)에서 읽을 경우, 나중 값을 사용함
git config --list
@tmfdk333 tmfdk333 self-assigned this Mar 13, 2019
@tmfdk333 tmfdk333 added the Git Git / Github label Mar 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Git Git / Github
Projects
None yet
Development

No branches or pull requests

1 participant