Commands
General
git init
git clone [git_path]
git clone -b {branch_name} --single-branch {저장소 URL}
ex) git clone -b javajigi --single-branch https://github.com/javajigi/java-racingcargit add [file_path]
# 모든 파일을 스테이지에 추가
git add -Agit checkout -b [branch_name]
commit
-m 옵션
--amend 옵션
Branch
git branch [branch_name]
git branch -r
git branch -a
git checkout [branch_name]
git checkout -t [remote_path/branch_name]
git branch -m [branch_name] [change_branch_name]
git branch -d [branch_name]
Merge
--no-ff 옵션

Remote
git push [저장소명] [브랜치명]
git remote add [이름] [저장소주소]
git 원격지 브랜치 삭제
Configuration
현재 설정정보 조회
사용자 이름 및 이메일 주소 추가
수정
Last updated