Skip to content

Instantly share code, notes, and snippets.

View AgentAntelope's full-sized avatar

fell sunderland AgentAntelope

  • London, UK
  • 08:05 (UTC +01:00)
View GitHub Profile
@zetter
zetter / find_git_remote_branches.sh
Created October 31, 2013 09:51
List the remote branches that with a last commit that you authored.
# list remote branches with committer name and email
function git_remote_branches_with_author {
for branch in `git branch -r | grep -v /HEAD`; do
echo -en "$branch ";
echo -e `git show -s --pretty=format:"%an %ae" $branch`;
done
}
# show filtered remote branches
function find_git_remote_branches {
@zhengjia
zhengjia / capybara cheat sheet
Created June 7, 2010 01:35
capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')