Giter Site home page Giter Site logo

study-git's Introduction

Hello Git World

git의 주요 개념

  • 작업 디렉토리 (Working Directory) : cmd, bash, 소스트리 등에서 파일 분산 관리 작업을 눈으로 확인이 가능한 곳.
  • 준비 영역 (Staging Area, Stage/Index) : 로컬 저장소에 올라가기 전에 임시로 .git안에 저장되는 곳.
  • 로컬 저장소 (Local Repository) : 로컬 저장소에 올라가서 자신이 수정한 파일을 업로드 받는 곳.
  • 원격 저장소 (Remote Repository) : Github 저장소에서 다같이 확인이 가능한 곳

기본 명령어

  • git init : git으로 분산관리시스템을 작업을 가능하게 초기화 시켜줌.
  • git status : git 작업이 부여되면 그 디렉터리 상황을 알 수 있음.
  • git add : add명령어를 함으로써 작업 디렉토리 영역에서 준비영역으로 이동시킬 수 있음.
  • git commit : git의 변경된 내용을 메세지로 남겨서 확인 할 수 있게 만듬.
  • git log : commit된 내용을 log 명령어로 확인 할 수 있음.
  • git reset --hard : 로컬 저장소에 있었던 내용을 다시 작업 디렉토리로 가져옴.
  • git rm --cached : 준비영역에 올라가 있던 것들도 rm -cached으로 내릴 수 있다.

제외 목록 설정

원격 저장소

  • 목록보기 : git remote -v
  • 추가하기 : git remote add [별칭] [주소]
  • 삭제하기 : git remote rm [별칭]
  • 별칭수정 : git remote rename [기존별칭] [새 별칭]
  • 주소수정 : git remote set-url [별칭] [변경할주소]

브랜치

  • 목록보기 : git branch
  • 생성하기 : git branch [새 브랜치명] 또는 git branch [복사할 브랜치명] [새 브랜치명]
  • 삭제하기 : git branch -d [브랜치명]
  • 이름변경(이동) : git branch -m [기존 브랜치명] [새 브랜치명]
  • 전환하기 : git checkout [브랜치명]

study-git's People

Contributors

jeonggyujun avatar

Stargazers

 avatar

Watchers

 avatar  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.