GIT

working directory : 내가 작업하고 있는 실제 디렉토리

staging area : 커밋으로 남기고 싶은 , 특정 버전으로 관리하고 싶은 파일이 있는 곳

repository : 커밋들이 저장되는 곳

Untitled

git rm --cached 파일이름 : commit 전에 add한거 지우기

commit 메세지 안쓴경우 : i치고 메세지 작성

git reset HEAD :

git restore 파일이름 : 파일을 수정하기 전으로 돌아감

git log --oneline : 현재까지 상황보기

Untitled

git log :

git remote add origin {remote_repo}

git push -u origin master

git push -u <repo_name 별명> <local branch>

git clone {remote_repo}

git push origin master