웹개발/git4 git token이 만료 시 settings에서 personal access token에 들어가 regenerate 해주고 push 할때 password에 붙여넣기 한다 2021. 9. 12. warning: redirecting to https://github.com 경고 remote가 http://github.com 으로 설정되어있을 때 나는 경고이다. remote를 https로 변경해주면 된다. 2020. 9. 20. fatal: refusing to merge unrelated histories, error: failed to push some refs to 에러 해결 처음에 git에 repository를 만들어 놓은 상태에서 local 파일을 업로드하려고 할 때 이런 오류가 발생했다. fatal: refusing to merge unrelated histories, error: failed to push some refs to git pull origin master --allow-unrelated-histories 를 이용해서 해결했다. 별로 좋지 않은 명령어이니 처음에 git을 push하는 과정에서 생기는 에러인 경우에만 사용하시길 바란다. 2020. 9. 20. git에 repository가 이미 설정되어 있는 경우 repository 변경 및 terminal, pycharm 을 이용한 git에 내 폴더 올리기 >git remote remove origin 1. git remote remove origin 이미 설정되어 있는 repository를 삭제 git remote add origin 2. 새로 연결하고자 하는 링크 추가 git pull origin master 3. repository에 있는 내용 받기 git commit -m “commit_description” 4. commit하기 이때 commit_description에는 commit할 내용이 들어감 git push origin master 5. push하면 끝 2020. 9. 19. 이전 1 다음