티스토리 뷰

[업데이트 2019.08.08 12:00]

 

1. 로컬 .git 디렉토리 삭제


2. git 초기화 및 파일 추가/커밋
cd my_git_folder
git init
git add *
git commit -m "Initial commit" 

 

3. Git remote 추가 및 강제 업로드
git remote add origin https://test@bitbucket.org/ai/test-pytorch
git push --force --set-upstream origin master

 

https://stackoverflow.com/questions/2006172/how-to-reset-a-remote-git-repository-to-remove-all-commits

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함