git
-
Command 모음git 2024. 2. 8. 18:41
작업 했던 모든 것을 되돌릴 때 git reset git checkout . 특정 파일을 tracking 에서 제외할 때 git rm --cached .idea/misc.xml 기존 repo 를 복제해 새로운 repo 를 만들 때 remote repo A 를 remote repo B 로 복제해 보자 1. 새로운 remote repo B 를 만듬. (파일을 1개 이상 생성하자) 2. 기존 remote repo A 를 local 로 clone (local_REPO) 함 3. local repo (local_REPO) 의 remote 정보를 수정해 remote repo B 로 변경함 (git remote ... ) 4. local repo (local_REPO) 와 remote repo B 를 연결하기 위해 ..