본문 바로가기
웹개발/git

git에 repository가 이미 설정되어 있는 경우 repository 변경 및 terminal, pycharm 을 이용한 git에 내 폴더 올리기

by julysein 2020. 9. 19.
728x90
>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하면 끝

728x90