Skip to content

Instantly share code, notes, and snippets.

View smrr723's full-sized avatar
🇪🇺

Scott Murray smrr723

🇪🇺
  • Scotland
View GitHub Profile
@mccabe615
mccabe615 / OhShitGit.md
Last active January 10, 2024 20:59
Oh Shit Git

Oh shit, I committed and immediately realized I need to make one small change!

make your change

git add .
git commit --amend

follow prompts to change or keep the commit message

now your last commit contains that change!

@esamattis
esamattis / .gitignore
Created September 7, 2016 10:42 — forked from salcode/.gitignore
.gitignore file for WordPress - Bare Minimum Git
# -----------------------------------------------------------------
# .gitignore for WordPress
# Bare Minimum Git
# http://ironco.de/bare-minimum-git/
# ver 20150227
#
# This file is tailored for a WordPress project
# using the default directory structure
#
# This file specifies intentionally untracked files to ignore
@michaelminter
michaelminter / notes.md
Created November 14, 2012 18:05
FIXME, TODO, and OPTIMIZE code comments

You can add some special notes to your source code comments in Rails to remind you later of stuff you need to do:

class Article < ActiveRecord::Base
  # TODO add named_scopes
  # FIXME method A is broken
  # OPTIMIZE improve the code 

  has_many :comments
  ....

end