"Git"의 두 판 사이의 차이

ph
이동: 둘러보기, 검색
4번째 줄: 4번째 줄:
 
  git rm --cached -r mydirectory
 
  git rm --cached -r mydirectory
 
http://stackoverflow.com/a/1143800/766330
 
http://stackoverflow.com/a/1143800/766330
{{break}}
 
  
 
==가져와서 새로운 repo만들기==
 
==가져와서 새로운 repo만들기==
24번째 줄: 23번째 줄:
 
  git submodule update --recursive
 
  git submodule update --recursive
 
http://stackoverflow.com/a/10168693/766330
 
http://stackoverflow.com/a/10168693/766330
{{break}}
 
  
 
==a==
 
==a==

2017년 4월 17일 (월) 01:19 판

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만들기

  1. Create a new repo at github.
  2. Clone the repo from the-origin to your local machine.
  3. git remote rename origin upstream
  4. git remote add origin url-of-mine
  5. git push origin master

To pull in patches from upstream, simply run

git pull upstream master && git push origin master

http://stackoverflow.com/a/5181968/766330

remote 주소 변경

git remote set-url origin git@github.com:USERNAME/OTHERREPOSITORY.git

확인

git remote -v

Update submodule

git submodule update --recursive

http://stackoverflow.com/a/10168693/766330

a