CM/Github(4)
-
git - 중요한 file을 모르고 push했을땐?
1. 임의로 test.pem을 생성하여 push하였다. 2. test.pem이 알고봤더니 정말 중요한 파일 이였다! 예를 들어 나의 비밀번호들이 저장되어있다..!! 3. 삭제를 하기 위해서는 아래와 같은 git filter-branch명령어를 사용 합니다. git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch src/main/resources/test.pem' --prune-empty -- --all git rm --cached는 원격지 브랜치에 있는 파일을 삭제 해줍니다. git rm 로컬과 원격지 둘다 삭제. 여기에는 로컬에는 남아있어도 되지만 원격지에 올라가면 안되기때문에 --cached 옵션을 사용한 것이다. --ignore-..
2022.03.03 -
git push error
git에 push를 하려는데 아래와 같은 오류 발생! rejected!! 대~충 읽어보니 git push전에 git pull을 하라고 한다 git push -u origin master To https://github.com/pthahaha/rest-api-study.git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://github.com/pthahaha/rest-api-study.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Inte..
2022.02.25 -
sourceTree 새로 설치 한 후 password를 지속적으로 묻는 경우
github > SSH and GPG keys를 설정해줬는데도 자꾸 패스워드를 물었다... cmd창에서 git config --global credential.helper osxkeychain 이 명령어를 통해 해결 하였다. 굳!
2019.06.04 -
github 오류 - Permission denied (publickey)
상황설명 이클립스에서 하둡소스를 코딩하고 github에 명령어로 소스를 올려보려고 하였다..하지만 문제에 봉착!! 오류는 아래와 같았다. 오류내역 $ git push -u hadoopOrigin masterPermission denied (publickey). fatal: Could not read from remote repository. 해결방법 1) 아래의 사이트에서 확인해보니 ssh문제였다.. https://help.github.com/articles/error-permission-denied-publickey 2) ssh를 생성해자~ssh-keygen~! gogo~! ssh-keygen -t rsa -C "git login id(e-mail address)" ssh-keygen -t rsa -C..
2014.09.17