Giter Site home page Giter Site logo

how-to-use-github's Introduction

how-to-use-github

기본적인 git 사용법!!

  1. 내 로컬 저장소(폴더)에서 git init 하기
  2. 깃허브 들어와서 repository 만들기
  3. repository 주소 복사한 뒤에 git remote add origin 레파지토리주소 하기
  4. git status로 파일 목록 빨간 글씨로 뜨는지 확인하기
  5. git add .해서 모든 파일 올릴 준비(스테이징)하기
  6. git commit -m "하고 싶은 말" 쓰고 커밋하기
  7. git push origin master 하기
    만약 저기서 오류가 나면 git pull origin master 해보기(github 사이트에서 뭘 바꿨으면 항상 해 줘야 함!!)
    git pull origin master 에서도 오류가 난다면 git pull origin master --allow-unrelated-histories 한 후
    git add . -> git commit -m "메세지" -> git push origin master하기

이건 첫 커밋 할 때만 1번부터 쭉 하면 되고, 다음 커밋부터는 git add 부터 하면 됨!!

만약 저게 안 되는 상황에는?!

  1. 깃허브 들어와서 repository 만들기
  2. 바탕화면 등 적당한 로컬 폴더에서 git clone 레파지토리주소 하기
  3. 올려야 하는 파일 git clone한 폴더(위 상황에서는 바탕화면)에 다 복사 붙여넣기
  4. git add . 부터 하면 됨!

master->hotfix로 변경 하는 법

  1. git checkout master
  2. git pull origin master
  3. git checkout -b hotfix/name

how-to-use-github's People

Contributors

binkalos avatar girincute avatar

Watchers

James Cloos avatar  avatar

Forkers

2ujin

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.