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

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

logo-internet-explorer

How to professionally test on old Internet Explorer versions

If you have (or want) to test your websites and applications on older versions of Internet Explorer, then there’s a

composer

A short & simple Composer tutorial

In this little Composer tutorial we’ll walk through the absolute basics of Composer, the PHP dependency management tool. Composer has

php

appserver.io – A New Way of Magento Enterprise Infrastructure (26min video talk)

Interesting stuff for all Magento people (unfortunatly the audio level is very low):

css3-chrome-font

[Link] Retinafy your Site / Device by Nijiko Yonskai

A simple one-page Gist with all the information you need to make your sites retina-ready: Nijiko Yonskai – Retinafy your

“Fuck you. Pay Me.” How to deal with clients, the professional way. An excellent talk with Mike Monteiro.

Excellent (and very useful) speech by Mike Monteiro about how to deal with clients, how to create a professional relation

Experimenting with HHVM at Etsy (Link)

Extremely interesting blog post of Etsy on how they try out HHVM / HipHop: https://codeascraft.com/2015/04/06/experimenting-with-hhvm-at-etsy/

shadow dom

A quick video introduction into Shadow-DOM, the game-changing DOM-subtree-technology

Awesome talk by Eric Bidelman (of the Chrome team): Shadow-DOM was often heard in 2013 and seem to exist for

unreal-4-engine

Tim Sweeney talks about the future of game graphics (and which hardware we need to “clone” reality)

If you are interested in 3D/CAD and game graphics and get sweaty hands at each new high-end game engine trailer

PHPStorm: 42 Tips and Tricks (47min video talk by Mikhail Vink at Dutch PHP Conference 2015)

To be honest I’ve not seen the clip yet, but it sounds so awesome and everybody is upvoting it. Have

1/4

Categories

Search

[Link] Improving Smashing Magazine’s Performance: A Case Study
php
Redesigning the PHP logo – who wants ?
Install MINI in 30 seconds inside Ubuntu 14.04 LTS
sass laravel
Extremely easy SASS in Laravel (with pure PHP)
php uk conference
PHP Caching Best Practices by Eli White (video from PHP UK Conference 2014)
vagrant
A super-simple Vagrant LAMP stack bootstrap (installable with one command)
october cms
October CMS, built on top of Laravel, is beautiful, clever and on the way to be the new #1 CMS
hearthbleed-ssl-bug
The SSL Heartbleed bug explained in 30 seconds
github-logo-octocat
GitHub buys Easel.io, a code-free full website creator worth a look
composer
The difference between “composer install” and “composer update” – nailed on the head
composer
[Link] How to require versions of PHP, HHVM / HipHop, GD, curl, openssl etc. with Composer
Frontend Ops Conf 2014 – Keynote by Alex Sexton: “Front End Operations”
Frontend Ops Conf 2014 – Sarah Goff-Dupont: Git, Continuous Integration and Making It Pretty (31min video)
symfony-framework-logo
SensioLabs, creator of Symfony and Silex PHP frameworks, gets $7 million capital
What’s new in PHPStorm 10 (Official promo video)

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