Code tagged with git

Manpage fix for programs installed via MacPorts on OSX

export MANPATH=/opt/local/share/man:$MANPATH
Language Shell/Scripting / Tagged with osx, git, man

Common git bash/zsh aliases

alias g=’git’
alias gb=’git branch’
alias gba=’git branch -a’
alias gc=’git commit -v’
alias gca=’git commit -v -a’
alias gd=’git diff | mate’
alias gl=’git pull’
alias gp=’git push’
Language Shell/Scripting / Tagged with git, bash, zsh

Git Commits That Need to be Pushed

Posted by Chad Humphries 2 months ago / Source: http://justinfrench.com/index.php?id=240
I constantly find myself wondering what the difference is between what I’ve committed to my local Git repository, and what’s been pushed up to Github. Here’s one way, I’m sure there’s others:

git cherry -v origin
Or, how about a bash alias?
alias push?='git cherry -v origin'
Language Shell/Scripting / Tagged with git

Searching for a deleted method with git

git log -S'some_string'
git whatchanged -p (after the pager comes up, type '/' and then 'some_string')
Language Shell/Scripting / Tagged with git

Simple git continuous integration

Preventing your developers (and yourself) from breaking the build is as simple as putting this in your .git/hooks/pre-commit and making it executable (chmod +x .git/hooks/pre-commit).
#!/bin/sh
rake spec 2> /dev/null
This will stop the commit if the specs don’t pass.
Language Shell/Scripting / Tagged with git

Enabling git submodules in capistrano 2

Posted by Chad Humphries 3 months ago
# Just add the following to your deploy recipe
set :git_enable_submodules, true
Language Ruby / Tagged with capistrano, git