我错过了什么git
才能忽略我的.idea/
道路?
ctote@ubuntu:~/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")
ctote@ubuntu:~/dev/1$ cat .gitignore
*.class
# Package Files #
*.war
*.ear
# IDEA config files
.idea/
2
可能已经忽略了已经提交到Git存储库的文件的
—
jub0bs 2015年
只需忽略文件-任何文件夹中要忽略的任何文件-转到intellij工具,右键单击文件/文件夹-> git->添加ti .gitignore文件,就是这样-从那时起,intellij将开始忽略这些文件/文件夹进行更改
—
Ashish Shetkar