Programming

서브 클립 스 svn : ignore

procodes 2020. 5. 24. 20:35
반응형

서브 클립 스 svn : ignore


저는 이클립스를 처음 사용합니다. SVN에 연결하기 위해 서브 클립을 사용하고 있습니다. svn : ignore에 추가하고 싶은 폴더와 파일이 있지만 회색으로 표시됩니다. 서브 클립을 파일과 디렉토리를 무시하도록하는 쉬운 방법이 있습니까?

서브 클립 스


이미 저장소에 커밋 된 파일은 svn : ignore 할 수 없습니다.

따라서 다음을 수행해야합니다.

  1. 저장소에서 파일을 삭제하십시오.
  2. 프로젝트 (작업 사본)를 헤드 개정으로 업데이트하십시오.
  3. Eclipse에서 파일을 다시 작성하십시오.
  4. Team-> Add to svn : ignore를 통해 파일에서 svn : ignore를 설정하십시오.
  5. 변경 사항을 반영하기 위해 일식을 다시 시작하십시오.

행운을 빕니다!


Windows 탐색기에서 TortoiseSVN을 직접 사용 하여이 작업을 수행 할 수있었습니다.

무시할 파일을 마우스 오른쪽 버튼으로 클릭 TortiseSVN->->Delete and add to ignore list

Eclipse에서 프로젝트를 닫았다가 다시 열어야했습니다.


Subclipse를 사용하면 최상위 폴더를 추가하여 목록무시 하고 하위 폴더는 무시할 수 없습니다. 왜 이런 식으로 작동하는지 잘 모르겠습니다. 그러나 시행 착오를 통해 버전 관리에 하위 폴더를 직접 추가하면 동일한 수준의 다른 폴더를 무시 목록에 추가 할 수 있습니다.

대체 텍스트

예를 들어, src 를 추가하지 않고 webapp 폴더 를 무시하고 싶을 때 위의 그림을 참조하면 subclipse는 그렇게 할 수 없었습니다. 그러나 Java 폴더를 버전 제어에 추가하면 "app to svn : ignore ..."가 webapp에 대해 활성화되었습니다 .


SVN에서 프로젝트를 Eclipse와 처음으로 공유하려는 경우 특정 파일이 커밋되지 않도록 할 수 있습니다. 그렇게하려면 환경 설정-> 팀-> 무시 된 자원으로 이동하십시오. 이 화면에서는 커밋하지 않으려는 파일 종류를 무시하기 위해 패턴을 추가하기 만하면됩니다.

이클립스 환경 설정


Eclipse Indigo Service Release 2에서 서브 클립 작업

/ src 아래에있는 임시 파일과 로그가있는 폴더를 SVN 저장소에 커밋했습니다. 그리고 그것을 깨달은 후, 나는 같은 상황에서 회색으로 된 "svn : ignore"로 자신을 발견했습니다.

다음 해결책을 찾았습니다.

1. 프로젝트 소스에서 폴더를 삭제했습니다

2. 팀-> 커밋 ... 폴더없이

3. 폴더를 다시 프로젝트 트리로 다시 생성

이제 "Team-> Add to svn : ignore ..."를 사용할 수있었습니다.


This is just a WAG as I am not a Subclipse user, but have you ensured that the folders containing what you're trying to ignore have themselves been added to SVN? You can't svn:ignore something inside a folder that's not under version control.


What worked for me was following : (eclipse 3.3.6 Subclipse 2.4)

  • set svn:ignore property via tortoise : ( .settings .classpath .project target .apt_src one item at one line)
  • deleted the project from the eclipse
  • fresh checkout from the svn
  • import the project in eclipse (simple reimporting the project in eclipse did not worked for me)

to ignore certain files or turn off ignoring you can use the eclipse preferences-->Team -->Ignored Resource. Check or uncheck the resources you want to be tracked.


I just figured out how to do this:

It appears that when you add a parent folder to version control, Eclipse adds all sub-folders. Once the sub-folders are added to version control, it is not possible to ignore them.

Here's how to do it:

Right click on the top level folder and add to version control Right click on the child folder you want to ignore, revert Right click on the child folder you want to ignore, svn:ignore (which will now be available)


This is quite frustrating, but it's a containment issue (the .svn folders keep track also of ignored files). Any item that needs to be ignored is to be added to the ignore list of the immediate parent folder.

So, I had a new sub-folder with a new file in it and wanted to ignore that file but I couldn't do it because the option was grayed out. I solved it by committing the new folder first, which I wanted to (it was a cache folder), and then adding that file to the ignore list (of the newly added folder ;-), having the chance to add a pattern instead of a single file.


One more thing... If you already ignored those files through Eclipse (with Team -> Ignored resources) you have to undo these settings so the files are controlled by Subclipse again and "Add to svn:ignore" option reappears


TortoiseSVN을 사용 중이고 파일이 이미 커밋 된 경우 파일 프로젝트 폴더로 이동하여 무시하려는 파일 / 폴더, TortoiseSVN-> Unversion을 마우스 오른쪽 버튼으로 클릭하고 무시 목록에 추가하십시오. 그런 다음 폴더 / 파일을 삭제하고 (클릭 한 다음 키보드에서 Delete 키를 누르십시오) 프로젝트 폴더를 마우스 오른쪽 버튼으로 클릭하십시오-> SVN Commit ... 저장소에서 폴더를 삭제합니다 .... 이제 만들 수 있습니다 폴더 / 파일을 다시 한 번 무시하면 무시됩니다.

참고 URL : https://stackoverflow.com/questions/1066809/subclipse-svnignore

반응형