git - How to add files/folders to .gitignore in IntelliJ IDEA? -


i try switch eclipse intellij idea. have project uses git , want add files .gitignore file. in eclipse can right click on file/directory , choose 'add .gitignore'.

is there in intellij idea or have edit file manually?

edit: intellij has plugin of (2016): https://plugins.jetbrains.com/plugin/7495?pr=idea. @ answer below biniam_ethiopia

original answer
far can see intellij has no option click on file , choose "add gitignore" eclipse has.

the quickest way add file or folder gitignore without typos is:

  1. right-click on file in project browser , choose "copy path" (or use keyboard shortcut displayed there)
  2. open .gitignore file in project, , paste.
  3. adjust pasted line relative location of .gitignore file

additional info: there ".gitignore" plugin available intellij adds "add .gitignore" item popup menu when right-click file. works charm.

to install plugin, go "settings -> plugins", click on "browse repositories..." , search ".ignore".


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -