git 종종 사용하지만 까먹는 명령어들 | git commands I occasionally use but keep forgetting
+ 조금씩 추가할 예정
이미 commit한 메세지 author 변경
git rebase -i HEAD~N # 원하는 수정 커밋 범위 설정
# 원하는 커밋 pick > e 로 수정 후
git commit --amend --author="jyami-kim <mor2222@naver.com>" # --amend로 author 변경
git rebase --continue # 다음 rebase 진행
branch upstream 변경
local branch가 remote branch를 추적하도록
git branch --set-upstream-to=origin/feature/TM-5644 feature/TM-5644
tag 추가
git tag tag-name
git push origin tag-name
git local 설정
git config --local user.email "mor2222@naver.com"
git config --local user.name "jyami-kim"
+ Will be updated gradually
Changing the author of an already committed message
git rebase -i HEAD~N # 원하는 수정 커밋 범위 설정
# 원하는 커밋 pick > e 로 수정 후
git commit --amend --author="jyami-kim <mor2222@naver.com>" # --amend로 author 변경
git rebase --continue # 다음 rebase 진행
Changing branch upstream
Make a local branch track a remote branch
git branch --set-upstream-to=origin/feature/TM-5644 feature/TM-5644
Adding a tag
git tag tag-name
git push origin tag-name
Git local configuration
git config --local user.email "mor2222@naver.com"
git config --local user.name "jyami-kim"
'Develop > git-github' 카테고리의 다른 글
| git status 한글 깨짐 | git status Korean character broken (5) | 2020.05.17 |
|---|---|
| git & github cooperation - DSC Ewha 세션 | git & github cooperation - DSC Ewha Session (0) | 2019.10.15 |
| git & github basic - DSC Ewha 세션 | git & github basic - DSC Ewha Session (0) | 2019.10.15 |
| git-flow 전략 (1) | 2019.08.02 |

댓글
Comments