git pull origin main
git add .
git commit -am "commit message"git push origin main
깃허브 rebase
1
2
3
4
5
6
7
8
9
10
11
# git pull 할 때 rebase 방식을 사용하도록 설정# 로컬 브랜치의 변경 사항을 원격 브랜치의 끝에 위치# 기본 설정은 mergegit config pull.rebase true# 다른 브랜치의 커밋을 main 브랜치로 이동# 커밋 히스토리를 정리하거나 브랜치를 재구성하는 데 사용git rebase main
# rebase 작성 취소git rebase --abort