Skip to content

Instantly share code, notes, and snippets.

View JeffCost's full-sized avatar

Jeff C JeffCost

  • August Ash Inc.
View GitHub Profile
@JeffCost
JeffCost / Git update-index --assume-unchanged.md
Created October 6, 2012 05:47 — forked from grafikchaos/Git update-index --assume-unchanged
Ignore uncommitted changes in tracked files with Git

IGNORE LOCAL CHANGES

Ignore local changes to repository files or directories git update-index --assume-unchanged path/to/file/or/directory

ALIAS

Or you can alias it in your ~/.gitconfig [alias] au = update-index --assume-unchanged

UN-IGNORE LOCAL CHANGES

@JeffCost
JeffCost / gist:3843711
Created October 6, 2012 03:51
Keeping your fork up to date

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@JeffCost
JeffCost / MAGE: magcontroller.sublime-snippet
Last active October 10, 2015 22:38
(controller) Sublime Snippet for Magento
<snippet>
<content><![CDATA[<?php
class ${1:namespace}_${2:moduleName}_${3:ControllerName}Controller extends Mage_Core_Controller_Front_Action {
public function indexAction()
{
${4:// ... code ...}
}
}${0}]]></content>