SWM-chatbot / SandwichMaker

Azure Chatbot Award 🥪 Team. SandwichMaker
0 stars 2 forks source link

git 자주 쓰는 명령어 #7

Open ji-water opened 4 years ago

ji-water commented 4 years ago

0-0. fork 저장소 로컬로 가져오기

   cd [작업 원하는폴더]
   git clone [fork github주소]

0-1. upstream 저장소 등록 (최초1번만 수행)

   git remote add upstream https://github.com/SWM-chatbot/SandwichMaker
  1. 작업용 브랜치 만들기

    git checkout -b [작업용브랜치명]
  2. git을 늘 최신 상태로 유지하기 위한 작업 (git 작업하기 전 매번 해줘야하는 작업)

    git checkout master
    git fetch upstream
    git merge upstream/master
    git checkout [작업용브랜치명]
    git rebase master
  3. git 업로드 하는 법

    git status
    git add -u
    git commit -m "[커밋 메시지]"
    git push origin [작업용브랜치명]
    + 깃 주소 들어가서 pull request 생성하기