Today I Learned/TIL 06

2023 - 06 - 03 VS code에서 git에 커밋하기

sangwoo_rhie 2023. 6. 4. 22:11

 

오늘 할일

개인과제, CRUD구성하기

 

오늘 배운 것

VS code에서 git에 커밋하기.

 

 

 

1. 신규브랜치 생성하려면
git checkout -b <생성할 신규 브랜치명>

2.기존브랜치에 넣으려면
git checkout <기존브랜치명> ex)sangwoo_rhie


git log


git add .


git commit -m 'fourth commit' (커밋 이름, first, second.. 순서대로 하면됨)


gitHub Pullrequest에서  compare&pull request 초록버튼 클릭


create pull request

code에 가서 변경내역 확인후, Pullrequest로 가서

merge pull request 


confirm merge