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:
- right-click on file in project browser , choose "copy path" (or use keyboard shortcut displayed there)
- open .gitignore file in project, , paste.
- 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
Post a Comment