git (2) 썸네일형 리스트형 Github에 잘 못 올라간 파일 삭제하기 --cached를 이용해서 github server의 파일 만 삭제할 수 있다. $ git rm --cached db.sqlite3 rm 'db.sqlite3' $ git rm --cached SunnyBlog/settings.py rm 'SunnyBlog/settings.py' 이후에 git status 확인하고 Commit 하고 push 하면 로컬에는 남아 있고 github에서는 지워진다. $ git status On branch main Your branch is up to date with 'origin/main'. Changes to be committed: (use "git restore --staged ..." to unstage) deleted: SunnyBlog/settings.py de.. github에 PC public key 연결하기. 1. git hub에 가입 2. New 버튼으로 Repository 생성 대표사진 삭제 사진 설명을 입력하세요. 3. github.com > Settings > SSH and GPG keys 에서 SSH Keys 추가 4. ssh public key 얻는 방법 - 명령 프롬프트에서 ssh-keygen을 실행하여 생성 된 id_rsa.pub 파일을 editor로 열면 확인 가능한 public key를 복사하여 SSH Keys에 추가하면 된다. 이전 1 다음