Logo
  • PHP
    • HipHop / HHVM
    • Modern PHP
    • PHPStorm
    • LAMP
    • Laravel
    • Composer
    • PDO
  • JavaScript
    • node.js
    • AngularJS
  • CSS
    • SASS
    • “CSS4” (CSS level 4)
  • HTML
  • Git
  • LAMP
  • Vagrant
  • UI / UX
  • Architecture of …
  • Off-Topic
With ♥ from Berlin
November 1, 2013
Chris
Git, Local Development, PHP, PHPStorm
Comments Off on Ignore .idea folder from git in PHPStorm

Ignore .idea folder from git in PHPStorm

PreviousNext
phpstorm-8

By default (?) PHPStorm will create a hidden folder named .idea directly within your project, containing user-specific stuff like chosen PHP version, syntax highlighting settings etc. This can be quite annoying as these files mess up your git repo and create conflicts when being committed into the repo (as other team members also have their own setting). And beside that, this simply doesn’t belong in there.

 

Make PHPStorm ignore .idea folder

1.) First, make git ignore the .idea folder via Settings (CTRL+ALT+S): In the Project Settings > Version Control > Ignored Files dialog there’s a green “plus” sign on the right, click this and simply add the .idea folder. This screenshot says it all:

ignore .idea with phpstorm

 

2.) Open the “local” terminal in PHPStorm (which is open by default, look at the left bottom of the screen for TERMINAL), make sure you are in your project’s folder and do:

git rm --cached .idea/*

This will remove all files in the .idea folder from Git. Note: From Git ! Not from the system. Don’t confuse rm (which will delete things in linux) with git rm (which will remove files from git’s commit list) ! The result should look like:

ignore .idea folder and files in git with phpstorm

BY THE WAY: Does anyone know how to open the terminal with a shortcut ? Please comment if you like.

 

3.) Now try to commit: PHPStorm should not have the entire .idea folder in its commit list.

result

 

gitgitignoreideaPHPStorm
Share this
mod-rewrite-ubuntu-14-04-lts

EOL lists of Ubuntu, Debian and CentOS for your server plannings

Chosing the right server operating system will probably save your life and avoid a lot of stress with your clients.

You made a mess with Git ? Here’s a flowchart guideline on how to fix

Extremely useful. Originally created by Justin Hileman in the presentation Changing History, or How to Git pretty. You’ll also find

phpstorm-8

Killer-feature in PHPStorm: Search everywhere

A short but massive productivity improvement: The new “search everywhere” feature in PHPStorm 7.1+! Simply double-tap the SHIFT key and

php

Slides from International PHP Conference 2014

Have fun :)   [slideshare id=35391362&doc=codereviewsfranksonsipc2014se-140602104917-phpapp02]     [slideshare id=35383348&doc=ipc14se-planningfortheunplannable-140602073028-phpapp02]   [pdf]http://ilia.ws/files/ipc2014_bottlenecks.pdf[/pdf]   The talk Code Coverage: Covered in Depth

How Instagram.com works

How to hack time (KUNG FURY promo campaign)

:) Finally, KUNG FURY is out! No need for further words, unless you lived in a cave for the last

ilovepreloaders – A tumblr collection of preloader animations

An excellent collection of preloaders (GIFs, Movies and real ready-to-copy&paste code) here in this wonderful blog: http://ilovepreloaders.tumblr.com/ This thing just

php

New GitHub repo: simple php-long-polling for creating real-time apps

Mornin’ ! I’ve just pushed a sweet little new project into GitHub: A very simple and totally reduced PHP long-polling

php

How to install PHP curl extension (in 5 seconds)

It’s a common wordpress problem: PHP’s curl extension is not installed! No need to mess around in config files etc,

modern-php

Creator of Slim framework and “PHP – The right way” writes book: “Modern PHP”, available 2015

Definitly something every non-superexpert-PHP-developer should have on its books-to-buy-in-2015-list: Josh Lockhart, creator of the legendaray Slim framework and the famous

1/4

Categories

Search

php-phalcon-logo
Which PHP-framework to learn in 2014 ? PHALCON, by far the fastest ever!
Hacking ATMs – A conference talk about the current security state of Windows XP driven cash machines
php
Must-read PHP blog: PHPweekly.com
ubuntu-14-04-lts lamp
How to install/setup a basic LAMP stack (Linux, Apache, MySQL, PHP) on Ubuntu 14.04 LTS
(Links) How to fix an extremely slow Symfony inside a Vagrant box
hiphop php
PHP’s HipHop outperforms PHP 5.5 with Zend OPCache and Nginx by 15-20 times
php-legacy-code
Interesting talk on modernizing a legacy PHP codebase
twig
A 6min video introduction into Twig, the PHP templating engine
Material Design – How Google designed Android L (7min video)
dev coding cards deck
Nice gifts for devs: Nerdy playing-cards decks
vagrant
A super-simple Vagrant LAMP stack bootstrap (installable with one command)
php
“Belt” adds very clever everyday functions to PHP, comes with JavaScript naming styles and eventually solves the needle/haystack problem
hack-php
Wow! Facebook devs have rewritten and fixed PHP, releasing it as new language called “Hack” today
hiphop php
[Link] How to set up HipHop, Nginx and Laravel in Ubuntu 12.04 LTS (in a Vagrant box)
How to hack time (KUNG FURY promo campaign)

Tags

apache bash centos composer conference coupon CSS debian fonts framework git GitHub hack HHVM HipHop HTML HTML5 IDE JavaScript JS LAMP laravel linux mod_rewrite MVC MySQL Nginx optimization PHP PHP 5.5 PHP 5.6 phpmyadmin PHPStorm security server SSD Ubuntu UI UX vagrant video virtual machine voucher VPS wordpress
Side-Project: Wordle-Solver:
www.wordle-helper.info

Pages

  • Privacy Policy