git
-
일간 Git(1)카테고리 없음 2023. 3. 30. 21:43
일간 Git(1) git clone 시 디렉터리 이름을 다른것으로 하고 싶을 때 **git clone ex. git clone my-algorithm** git diff 시 이미 staged 된 것을 보고 싶을 때 **git status --staged git status --cached # 둘이 같은 옵션** git rm **git rm = rm + git add # 만약 로컬에 있는 파일은 그대로 두고 원격(github)에 있는 파일만 삭제하고 싶을 때 git rm --cached git commit -a -m "commit message" git push** git mv **# file 이름 변경하기 git mv = mv + git rm + git add **