git & github

DONGHYUN KOO·2020년 8월 31일
1

git 과 github를 활용하여 [Django] Westagram endpoint 구현 실습을 진행하였습니다.

세션을 따라가다가 중간에 놓쳐서 스스로 해봤다. commit을 진행하지 않은 채
계속 push를 진행하여 Pull request 진행이 되지 않아 꽤 애를 먹고 할수 있게 되었다

  1. 바탕화면에 development 파일을 생성하였다.(mkdir development)

  2. 위스타그램 레포지토리 clone
    위스타그램 백엔드 깃헙 레포지토리에 접속합니다 → Westagram backend github repository
    Code 버튼을 클릭하면 Clone with HTTPS 를 확인할 수 있습니다. 레포지토리 주소를 복사합니다.

터미널로 돌아가 cd development > 위치에서
git clon https://github.com/wecode-bootcamp-korea/westagram-backend.git 실행합니다

  1. 클론이 끝난 뒤 cd westagram-backend 파일로 이동 후
    ls로 파일 내부에 보면 students 폴더에 cd students로 접속
    mkdir 12th 폴더를 만든 후 mkdir donghyun 폴더 생성
    vi introduce.txt 파일 작성후 저장
  2. git brach feature/12thdonghyun 브랜치 생성
    git branch 명령어를 입력해보면 현재는 master branch에서 작업 중인것으로 나옵니다.
    git chcekout feature/12thdonghyun -> 브랜치가 변경된다
    아까 전에 introduce.text를 push 하기위해서는 현재 상태 점검
    git status
    git add-introduce.text
    git status
    git commit enter
    commit 내용작성후 저장
    git push feature/12thdonghyun
    git pull request 진행

0개의 댓글