2012-05-13 3 views
0

난, 난 그냥 자식에 /lib/request.js/lib/response.js을 유지해야합니다 제거하기 위해 열심히 http://help.github.com/remove-sensitive-data/자식은

하지만 여전히 일부 파일에 따라 제거 풀다.

해당 기사에서 삭제할 파일을 알려야합니다. Rakefile은

git filter-branch --index-filter 'git rm --cached --ignore-unmatch Rakefile' --prune-empty -- --all

하지만 내가 원하는 유지 할 파일을 알 수 있습니다.

어떻게하면됩니까?

답변

0

완전히 새로운 저장소를 만들지 말고 실제로 복사 된 두 개의 파일로 시작해서는 안됩니까?

$ mkdir my_repo 
$ cd my_repo/ 
$ git init 
Initialized empty Git repository in /Users/annelicuss/my_repo/.git/ 
$ wget https://raw.github.com/visionmedia/express/master/lib/request.js 
--2012-05-13 20:38:08-- https://raw.github.com/visionmedia/express/master/lib/request.js 
Resolving raw.github.com... 207.97.227.243 
Connecting to raw.github.com|207.97.227.243|:443... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 8878 (8.7K) [text/plain] 
Saving to: `request.js' 

100%[======================================>] 8,878  --.-K/s in 0s  

2012-05-13 20:38:10 (242 MB/s) - `request.js' saved [8878/8878] 

$ wget https://raw.github.com/visionmedia/express/master/lib/response.js 
--2012-05-13 20:38:16-- https://raw.github.com/visionmedia/express/master/lib/response.js 
Resolving raw.github.com... 207.97.227.243 
Connecting to raw.github.com|207.97.227.243|:443... connected. 
HTTP request sent, awaiting response... 200 OK 
Length: 15276 (15K) [text/plain] 
Saving to: `response.js' 

100%[=======================================================================================================>] 15,276  --.-K/s in 0s  

2012-05-13 20:38:17 (280 MB/s) - `response.js' saved [15276/15276] 

$ ls 
request.js response.js 
$ git add * 
$ git commit -m 'Add request, response from Express.' 
[master (root-commit) be4a6d9] Add request, response from Express. 
2 files changed, 1059 insertions(+), 0 deletions(-) 
create mode 100644 request.js 
create mode 100644 response.js 
$ git log 
commit be4a6d9c82cb48b61f662e1e83a9f696a6685883 
Author: Arlen Cuss <[email protected]> 
Date: Sun May 13 20:38:37 2012 +1000 

    Add request, response from Express. 
$ 

이 경우에도 사용자가 원하는대로 작동하지 않을 수 있습니다. request.jsresponse.js은 모두에 따라 다릅니다. 동일한 디렉토리에 util.js이 있습니다. Express를 프로젝트의 종속 항목으로 추가하기 만하면됩니다.

+0

https://github.com/kissjs/kick.js/blob/master/lib/request.js 프레임 워크의 일부로이 파일을 가져와야하지만 그 기여자에 대한 존중의 역사를 유지하고 싶습니다. 나는 아주 어리 석다. –

+0

@guilin 桂林 : 저는 변화 역사를 보존하려고 노력하는 것이 존경심을 나타 내기 위해 무엇이든 할 것이라고 생각하지 않습니다. 단지 직업을 훨씬 어렵게 만들 것입니다! – Ashe

관련 문제