Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
31 |
Tags
- Git
- logine
- Repository
- express
- Fetch
- AWS
- GitHub
- database
- Django
- WebView
- kurento
- Framework
- mariadb
- REQUEST
- node.js
- android
- WebRTC
- http
- react
- Python
- nodjs
- response
- MediaServer
- Expo
- ios
- react-navigation
- react-native
- axios
- Firebase
Archives
- Today
- Total
목록Git (1)
Inside Out
[Git] git 저장소 히스토리 삭제 및 초기화하기
기존에 있던 프로젝트 저장소의 commit 히스토리를 정리하고 싶을 때 혹은 저장소를 다른 곳으로 옮기고 싶을 때 사용하면 좋을 것 같습니다. 1. 로컬 저장소의 git 히스토리 삭제 $ rm -rf .git 2. 로컬 저장소를 다시 초기화 $ git init 3. 초기화할 파일을 추가 & 커밋 $ git add . $ git commit -m "first project commit" 4. 커밋 히스토리 확인 $ git log 5. 저장소 연결 후 푸시 $ git remote add origin $ git push -u --force origin master
Git
2019. 10. 11. 11:25