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
-
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 <url>
$ git push --force --set-upstream origin master
'Programming > Tools' 카테고리의 다른 글
google spread sheet에서 다른 파일의 내용을 import할 때 (0) | 2018.11.24 |
---|---|
docker-machine boot2docker sudo (0) | 2018.07.23 |
docker redis (836) | 2018.07.09 |
docker commands basic II (0) | 2018.07.09 |
docker command basic (756) | 2018.07.09 |
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
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' 카테고리의 다른 글
- Total
- Today
- Yesterday
- AWS
- Python
- MacOS
- pymongo
- Elasticsearch
- mecab
- spring #lombok
- Redis
- IntelliJ
- scrapy
- 은전한닢
- xpath
- ansible-container
- git
- GCP
- TDD
- PubSub
- pycharm
- docker-machine
- Netty
- MongoDB
- docker
- kubernetes
- boot2docker
- Paw
- X-Pack
- zsh
- PIP
- Ansible
- Spring Boot
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |