Git Product home page Git Product logo

client's Introduction

<<<<<<< HEAD

Emma

원격저장소의 브랜치를 생성하는 방법

작업 설명

원격저장소의 브랜치를 이용하면 팀원들과의 공동 작업물과 개인의 작업물을 효율적으로 병합시킬 수 있다. 브랜치를 이용하기에 앞서 원격 저장소의 브랜치를 생성한다. 깃허브 웹을 이용하는 방법 / GitBash를 이용하는 방법 두가지가 있으며 사용자의 상황에 따라서 선택해 사용한다.


깃허브 웹에서 브랜치(branch) 만드는 방법

img load fail

  1. 원하는 저장소에 들어가기
  2. 메뉴 왼쪽 하단에 보면 셀렉박스로 branch master라고 써있는 버튼 확인
  3. 버튼 클릭 시 현재 원격저장소가 갖고있는 브랜치 목록이 뜬다.
  4. 텍스트박스를 클릭해 브랜치이름을 입력한다.
  5. Enter 치면 branch 생성 완료
  6. 위 5개의 메뉴에서 commits 오른쪽에 있는 branches를 클릭하면 생성된 브랜치를 확인할 수 있다.

참고로 웹에서 생성한 브랜치를 노트북으로 가져오는 작업은 아래 링크를 따라 시행한다.

GitBash 이용해 브랜치(branch) 만드는 방법

  1. 작업폴더에서 GitBash 오픈 (Windows경우 파란색 글씨의 master표시 확인)

  2. git branch 브랜치이름

    • 브랜치 생성
  3. git checkout 브랜치이름

    • 생성한 브랜치로 전환
    • 2번의 브랜치이름과 동일해야 한다.
  4. git push origin 브랜치이름

    • 원격 저장소에 반영하기
    • 2,3의 브랜치이름과 동일해야 한다.

참고로 1,2번의 작업을 동시에 진행하는 명령어는 아래와 같다.
git checkout -b 브랜치이름
브랜치를 생성했으니 이제 작업 후 원격 저장소에 반영하는 작업은 아래 링크를 따라 진행한다.

Emma

b22d7f210fe5f9a76d1e8bb52af4c25538887c35

client's People

Contributors

bizbaeja avatar lilyee19 avatar jihoonnnn avatar jsy3 avatar jsy6 avatar ilu25 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.