Skip to content

Instantly share code, notes, and snippets.

View burakbozyigit's full-sized avatar
🪛
Infraying the structure.

Burak Bozyiğit burakbozyigit

🪛
Infraying the structure.
View GitHub Profile
@burakbozyigit
burakbozyigit / switch-github-user.sh
Created December 16, 2024 12:33 — forked from cr0wg4n/switch-github-user.sh
A Bash script to interchange multiple GitHub users in a unique machine
#!/bin/bash
gh_user="${1:-Nothing}"
if [ "$gh_user" == 'USERNAME_1' ]; then
ssh-add -D
git config --global user.email "USERNAME_1_EMAIL"
ssh-add /PRIVATE_KEY_PATH/.ssh/github-USERNAME_1
elif [ "$gh_user" == 'USERNAME_2' ]; then
ssh-add -D
git config --global user.email "USERNAME_2_EMAIL"
@burakbozyigit
burakbozyigit / vimdiff.md
Created January 22, 2019 12:16 — forked from mattratleph/vimdiff.md
vimdiff cheat sheet

vimdiff cheat sheet

##git mergetool

In the middle file (future merged file), you can navigate between conflicts with ]c and [c.

Choose which version you want to keep with :diffget //2 or :diffget //3 (the //2 and //3 are unique identifiers for the target/master copy and the merge/branch copy file names).

:diffupdate (to remove leftover spacing issues)

:only (once you’re done reviewing all conflicts, this shows only the middle/merged file)

@burakbozyigit
burakbozyigit / tmux-cheatsheet.markdown
Created November 5, 2018 12:38 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname