Skip to content

Instantly share code, notes, and snippets.

View getraid's full-sized avatar
🦆
Ducks!

Thomas getraid

🦆
Ducks!
View GitHub Profile
@NitroHxC
NitroHxC / fork_prereq_arch.txt
Created December 16, 2023 21:57
Setup & Run git Fork on Arch/Ubuntu
### Prerequisites for Arch:
# sudo pacman -Sy p7zip wine-staging winetricks
# or
# yay p7zip
# yay wine-staging
# yay winetricks
@rvl
rvl / git-pushing-multiple.rst
Created February 9, 2016 11:41
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

An Introduction to tmux

Overview

  • Terminal multiplexer
  • Multiple terminals
  • Panes & windows
  • Maintains connections
  • Configurable
@emiller
emiller / git-mv-with-history
Last active July 24, 2025 22:22
git utility to move/rename file or folder and retain history with it.
#!/bin/bash
#
# git-mv-with-history -- move/rename file or folder, with history.
#
# Moving a file in git doesn't track history, so the purpose of this
# utility is best explained from the kernel wiki:
#
# Git has a rename command git mv, but that is just for convenience.
# The effect is indistinguishable from removing the file and adding another
# with different name and the same content.