git repository commit 내역 reset 하고 새로 시작하기
Delete the .git directory locally. Recreate the git repostory: $ cd (project-directory) $ git init $ (add some files) $ git add . $ git commit -m 'Initial commit' 3. Push to remote server, overwriting. Remember you're going to mess everyone else up doing this … you better be the only client. $ git remote add origin $ git push --force --set-upstream origin master
Programming/Tools
2020. 10. 19. 15:20
git 모든 remote branch 가져오기
git branch -a | grep -v HEAD | perl -ne 'chomp($_); s|^\*?\s*||; if (m|(.+)/(.+)| && not $d{$2}) {print qq(git branch --track $2 $1/$2\n)} else {$d{$_}=1}' | csh -xfs https://stackoverflow.com/questions/67699/how-to-clone-all-remote-branches-in-git
Programming/Tools
2018. 4. 23. 20:15
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Ansible
- pymongo
- Python
- MacOS
- git
- Redis
- X-Pack
- IntelliJ
- GCP
- PIP
- Paw
- Netty
- 은전한닢
- xpath
- Elasticsearch
- PubSub
- scrapy
- boot2docker
- TDD
- kubernetes
- ansible-container
- Spring Boot
- mecab
- spring #lombok
- pycharm
- docker
- AWS
- zsh
- docker-machine
- MongoDB
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함