"Git"의 두 판 사이의 차이
ph
(새 문서: ==Remove a file from a Git repository without deleting it from the local filesystem== git rm --cached mylogfile.log For a directory: git rm --cached -r mydirectory [http://stackover...) |
|||
3번째 줄: | 3번째 줄: | ||
For a directory: | For a directory: | ||
git rm --cached -r mydirectory | git rm --cached -r mydirectory | ||
− | + | http://stackoverflow.com/a/1143800/766330 | |
+ | {{break}} | ||
+ | |||
+ | ==가져와서 새로운 repo만들기== | ||
+ | # Create a new repo at github. | ||
+ | # Clone the repo from ''the-origin'' to your local machine. | ||
+ | # <pre>git remote rename origin upstream</pre> | ||
+ | # <pre>git remote add origin url-of-mine</pre> | ||
+ | # <pre>git push origin master</pre> | ||
+ | To pull in patches from upstream, simply run | ||
+ | git pull upstream master && git push origin master | ||
+ | http://stackoverflow.com/a/5181968/766330 |
2017년 4월 12일 (수) 23:29 판
Remove a file from a Git repository without deleting it from the local filesystem
git rm --cached mylogfile.log
For a directory:
git rm --cached -r mydirectory
http://stackoverflow.com/a/1143800/766330
가져와서 새로운 repo만들기
- Create a new repo at github.
- Clone the repo from the-origin to your local machine.
git remote rename origin upstream
git remote add origin url-of-mine
git push origin master
To pull in patches from upstream, simply run
git pull upstream master && git push origin master