Skip to content

Instantly share code, notes, and snippets.

View HendrikPetertje's full-sized avatar

Peter van der Meulen HendrikPetertje

View GitHub Profile
@HendrikPetertje
HendrikPetertje / commands.sh
Last active September 3, 2025 12:03
git worktrees
# Worktrees are an awesome way to separate the various branches of a git repo in to different directories.
# each with their own git ignored dependencies, etc.
# More info on this: https://www.youtube.com/watch?v=2uEqYw-N8uE&pp=ygUNZ2l0IHdvcmt0cmVlcw%3D%3D
# - Clone the remote first (replace REMOTE, with git url)
# - Setup origin to be fetched/pulled after that.
# this way you'll be able to receive new branches made by other people/machines after the initial clone
# - Create a new worktree from the existing main or master branch
git clone REMOTE --bare
@thotmx
thotmx / install_chrome_driver
Created March 21, 2015 06:12
Install chromedriver in Ubuntu (14.04)
$ sudo apt-get install chromium-chromedriver
$ sudo ln -s /usr/lib/chromium-browser/chromedriver /usr/bin/chromedriver