GitHub
<main branch로 push 하는 법>
1. git add .
2. git commit -m "description"
3. git push origin main
<push한 것을 pull 하는 법>
1. git stash 또는 git commit
2. git pull origin main
3. git stash 했고 다시 불러오고 싶다면 git stash pop
<브랜치>
1. 생성: git branch 브랜치명
2. 이동: git checkout 브랜치명
3. 조회: git branch
4. 생성 후 이동: git checkout -b 브랜치
'GitHub' 카테고리의 다른 글
gitignore에 추가했는데 변동사항이 자꾸 커밋되는 이유가 뭘까? (0) | 2025.05.15 |
---|---|
Commit Message Convention (1) | 2025.04.29 |
gitIgnore에 추가, 레포지토리의 파일 삭제 (0) | 2025.04.29 |