config 설정
git config --global user.email "내 메일"
git config --global user.name "내 유저네임"
대상 지정
git add [파일]
설명 추가
git commit -m "버전 설명(상세할수록 좋음)"
버전 추가하기
파일 내용 변경 후 2,3번 실행
커밋 확인하기
git log
ex) commit 27bdc8c6ed33628c291cc663c53ea73c647b1778 (HEAD, origin/master)
커밋 되돌리기
: 되돌리려는 커밋 아이디의 앞 7자리 복사
git checkout 커밋아이디
git remote add origin 저장소주소
git push origin master
push 실행 시 토큰 인증 해결
프로필 -> settings -> Developers settings ->Personal access tokens ->Expiration : No expiration
->repo 체크 -> Generate token -> access tokens (주소기억하기)
git clone 주소 ' .' //한 칸 띄우고 . 붙이기 !!!!!! (현재 폴더에 생성한다는 뜻)
1.커밋을 내려받을 [폴더]에서 [Git Bash Her] 실행
git pull origin master