형상관리/git

새로운 Branch 생성

멋진놈 2024. 7. 25. 13:02
728x90

1. 새로운 second branch 생성

git checkout -b "second"

 

2. 현재 git branch 확인

git status

 

3. 변경된 내용 추가

git add .

 

4. commit

git commit -m "두번째 계정으로 commit"

 

5. git remote에 반영

git push origin second