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
phpstorm 7.0 php

A perfect video tutorial to get started with xdebug in PHPStorm

Laracast just published an excellent short tutorial on how to get install xdebug in a local environment and how to

sass laravel

SASSmeister is a real-time JSfiddle for SASS / CSS. Awesome!

Excellent tool for testing out SASS in real-time! SASSmeister.com offers a responsive (!) interface for quick SASS-to-CSS development with some

php

PHP.net hacked, but most things are fine again

Between 22nd and 24th October 2013 php.net served JavaScript malware (that was built to use security holes in the usually

php

How the PHP session garbage collector really works

Sessions in PHP are easy to handle, but have a tricky configuration underneath. The common opinion is, that when you

hiphop php

Vote for “Hack” for HipHop/HHMV support (future style PHP) in PHPStorm 8

“Hack” will come. And “Hack” will change PHP, definitly. In case you never heard of it, have a look into

DigitalOcean coupon voucher 50

Only today: $50 coupon for DigitalOcean SSD VPS / hosting

Wow! The supernice SSD-cloud-server-provider DigitalOcean adds $50 (!) to new customers accounts ONLY TODAY (US-time-zones, so calculate if this is

mod-rewrite-ubuntu-14-04-lts

Which server OS version to choose ? Some EOL lists of Debian, Ubuntu and CentOS

Moving running projects (especially smaller ones that you’ve made for clients years ago) from an outdated and not-supported linux version

Migrating Wikipedia to HHVM (@Scale Conference 2014)

Awesome topic, superfresh, directly from Scale Conference 2014. The title says everthing. Full quote from video’s description: As a top

How to get a single table out of a massive MySQL .sql database backup file (mysql dump splitter)

Imagine the following situation: Somebody backs up an entire MySQL database – a very large one – with common tools.

digitalocean coupon

Free $10 coupon for DigitalOcean SSD cloud VPS hosting

DigitalOcean puts out another coupon, this time for free $10 with the code SSD2014. The company offers small and big

1/4

Categories

Search

php
Test out PHP 5.6alpha1 on Windows 7 / 8 with two clicks
github-logo-octocat
GitHub buys Easel.io, a code-free full website creator worth a look
Rare Steve Jobs AND Bill Gates video interview from 2007’s D5 conference (90min)
js javascript
Push database changes to all clients in real-time (!) with AngularJS and Firebase
cheap cloud server php
DigitalOcean rolls out interesting feature: Transfering server snapshots directly to the client’s account
MINI, an extremely simple barebone PHP application
phpstorm-8
When PHPStorm’s cache eats up your harddisk space
Soundcloud’s “VP of Engineering” about using SSDs
GitHub finally introduces repo traffic stats
php
Why Modern PHP is Awesome And How You Can Use It Today (Slides by Matt Stauffer)
Experimenting with HHVM at Etsy (Link)
Dangerous Performance Myths in the Web (video talk by Thomas Lohner, PHPUG Latvia)
pdo-debug
Debug PDO with this one-line function. Yeah!
vagrant
Generate Vagrant boxes with Laravel, HipHop, Nginx, WordPress, MySQL, MariaDB, MongoDB, RabbitMQ etc. with one click
phpstorm 7.0 php
PHPStorm 7 has been released!

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