내 .gitignore 파일이 예기치 않게 작동하는 것 같습니다. 다음은 그 예이다 :.gitignore는 공백입니까?
예상대로[email protected]:~$ mkdir foo
[email protected]:~$ cd foo/
[email protected]:~/foo$ touch bar.txt
[email protected]:~/foo$ git init
Initialized empty Git repository in /home/pon2/foo/.git/
[email protected]:~/foo$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# bar.txt
nothing added to commit but untracked files present (use "git add" to track)
, bar.txt라는이 같은 추적되지 나타납니다 :
은 내가 무시하려는 파일 bar.txt라는와 새로운 환매 특약 foo는합니다. 그래서 .txts를 무시하는 자식에게,하지만 난 실수로 일부 후행 공백 추가 : 나는 REPO 상태를 확인할 때 이제[email protected]:~/foo$ echo "*.txt " > .gitignore
을, 자식은 bar.txt라는 무시하지 않습니다 : 무슨 무슨
[email protected]:~/foo$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# .gitignore
# bar.txt
nothing added to commit but untracked files present (use "git add" to track)
에?
질문 *으로 질문하는 한 자신 만의 질문을 할 수 있습니다. http://meta.stackexchange.com/questions/12513/should-i-not -answer-my-own-questions 그렇지 않으면 블로그 게시물 일 뿐이며 여기에 속하지 않습니다. –
gitignore 맨 페이지에서 힘내 개발자에게이 패치를 보내라. – jamessan
@GregHewgill, 고마워, 고정. – wvoq