Skip to content

Instantly share code, notes, and snippets.

View ramene's full-sized avatar

Ramene Anthony ramene

  • Earth
View GitHub Profile
@ramene
ramene / pr.md
Created January 30, 2018 00:43 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = git@github.com:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@ramene
ramene / README.md
Created September 4, 2018 03:16 — forked from hofmannsven/README.md
My simply Git Cheatsheet
@ramene
ramene / .tmux.conf
Created June 10, 2020 02:11 — forked from tsl0922/.tmux.conf
vim style tmux config
# vim style tmux config
# use C-a, since it's on the home row and easier to hit than C-b
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
set -g base-index 1
# Easy config reload
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded."