반응형
새로운 branch만들 때
- git checkout -b <new branch-name>
repository에 commit 할때
git add . # git에 수정사항 업로드
git status # 수정된 파일 미리보기
git commit -m "commint 내용쓰기" # commit 쓰기
git push origin <branch-name>
현 pr에서 제거할 때
git rm --cached -rf .
git add .
git commit -m "{커밋 메시지 입력}"
반응형
'Github' 카테고리의 다른 글
CRLF, LF 차이에 대해 알아보고 git설정해보기 (0) | 2023.12.14 |
---|---|
git push할 때마다 password 입력하라고 나올 때 해결법! (0) | 2023.12.14 |
git conventional commit에 대해 살펴보기 (0) | 2023.12.14 |
Git 원격저장소에 있는 내가 원하는 PR commit만 gh로 가져오기~! (0) | 2023.12.14 |
현재 commit과 이전 commit 기록까지 전부 반영되는 branch꼬임현상 해결하기 (1) | 2023.12.05 |