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 브랜치

 


 

 

 

 

+ Recent posts