git config --global user.name [이름]
git config --global user.mail [메일 주소]
# local 설정
git config --list
# global 설정
git config --global --list
Github Access token 인증 (토큰 발급은 깃허브에서)
git clone 또는 git push 명령 시, Password로 발급 받은 토큰 입력
ID, Password 다지 묻지 않게 하기
Git Credential/cache
git config credential.helper cache
git config credential.helper 'cache --timemout=3600'
git credential -cashe exit
Git Credential/store
git config credential.helper store
git config --unset credential.helper
기본 명령어
start a working area
git clone [url]
git init
work on the current change
git add .
git add 파일명
# add 되돌리기
git rm --cached 파일명
examine the history and state
git diff HEAD origin/master
git log
git status
grow, mark and tweak your common history
git commit -m "커밋메시지"
collaborate
git fetch origin
git pull <원격 저장소 명> <branch 명>
git pull origin master
git pust <원격저장소명> <branch 이름>
git push origin master