Skip to content

Instantly share code, notes, and snippets.

View wgao19's full-sized avatar
👩‍🌾
👩🏻‍🌾

Wei Gao wgao19

👩‍🌾
👩🏻‍🌾
View GitHub Profile
@wgao19
wgao19 / git-cheatsheet.md
Last active June 28, 2022 08:30
Git cheatsheet

upstream to main repo

$ git remote add upstream git@github.com:main-repo.git
$ git fetch upstream
$ git branch --set-upstream-to=upstream/master master

set remot url

@wgao19
wgao19 / tmux.md
Last active June 7, 2019 03:21 — forked from andreyvit/tmux.md
tmux cheatsheet

tmux cheat sheet

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer something else, you need to add this to ~/.tmux.conf:

# remap prefix to Control + a
set -g prefix C-a
# bind 'C-a C-a' to type 'C-a'