그리고 내가 업데이트한 파일 나만의 branch로 업로드(push) 하기.
C:\Boot camp\myPjt
git init
git remote add https://github.com/uvcjsh/metacamp-sample.git
git fetch
git clone https://github.com/uvcjsh/metacamp-sample.git
dir
, cd metacamp-sample
git switch -c ansunny1170
echo 'ansunny1170'> README.md
cat README.md
git add .
git commit -m "수정"
git push -u origin ansunny1170
conflict가 발생하면 같은 branch에 같은 이름의 파일에 다른내용이 있다는 것이다.
code를 pull해서 확인해 보고나서 conflict를 해결하고 push하는 순서로 해결하면 된다.
강사님 순서
git branch
git fetch
ls
git log
git branch -a
git checkout ansunny1170
git log
git checkout develop
git pull origin ansunny1170
이렇게하면 conflict가 발생할 것이다.
그리고 vs code에서 git을 사용하다 conflict가 발생하면 vs code에서 수정이 가능하다.
current, incomming, both change 버튼이 있을 것이고, 아니면 수동으로 직접 수정해도 된다.
수동 수정은 github에서도 가능한데, 왠만해서는 그렇게 안하지 ㅎ
수정하고나서
git add .
git commit -m "pull form ansunny1170"
git push origin develop
docker run -dit -p 5433:5432 -e POSTGRES_PASSWORD=postgres --name postgresDB postgre:dev
로컬에 postgre를 설치안하고 컨테이너로 만들 수 있다.
-e가 환경변수 수정이다.
개인프로젝트는 알아서 하자 ^^
진행 시 어려운 부분에 대해 멘토 분들이 방향성에 대한 가이드를 줄 수 있다.