gi
//Git 초기 셋팅, 여기까지하면 git에있는 파일들 전부 다운
git config --global user.name "C106"
git config --global user.email "[email protected]"
git clone <https://lab.ssafy.com/s07-webmobile3-sub2/S07P12C106.git>
cd S07P12C106
//Git 커밋하기
git pull //최신상태 확인
git add //바꾼게 있으면실행 (파일을 1단계로 올려줌)
git commit -m "SensorTest-ESP8266" //메세지와함께 커밋
git push
git switch -c master
touch README.md
git add README.md
git commit -m "add README"
git branch //자기가 만든 브랜치이름
git checkout //자기가 만든 브랜치이름
//=> 자기가 만든 브랜치로 이동하는 명령어
//자기꺼 작업하고 git add ., git commit -m " "
git checkout master
//=> master 브랜치로 이동
git merge //자기가 만든 브랜치이름
git push origin master