Tôi thiếu điều gì cần thực hiện để có được git
để bỏ qua đường dẫn .idea/
của tôi?.gitignore không bỏ qua đường dẫn .idea
[email protected]:~/dev/1$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: .idea/.name
modified: .idea/misc.xml
modified: .idea/modules.xml
modified: .idea/vcs.xml
modified: .idea/workspace.xml
modified: src/Receiver.java
modified: test/1/agent/WindowsQueryHandlerTest.java
Untracked files:
(use "git add <file>..." to include in what will be committed)
lib/
mp1.iml
no changes added to commit (use "git add" and/or "git commit -a")
[email protected]:~/dev/1$ cat .gitignore
*.class
# Package Files #
*.war
*.ear
# IDEA config files
.idea/
thể trùng lặp của [Bỏ qua file đã được cam kết một kho Git] (http://stackoverflow.com/questions/1139762/ignore- tập tin-đó-đã-đã-được-cam-to-a-git-kho) – Jubobs