git - Gakgu/Gakgu.github.io GitHub Wiki

git이란?

버전관리 프로그램.

설치

$ pacman -S git

사용법

  • 초기설정
$ git config --global user.name "Your Name Here"
$ git config --global user.email "[email protected]"
  • 새로운 저장소 만들기
$ git init
  • 기존의 저장소 사용하기
$ git clone 주소
  • 이전 커밋으로 되돌아가기
$ git reset // or git reset g54bxl...
$ git checkout *
$ git clean -df