Skip to content

Instantly share code, notes, and snippets.

@robkooper
robkooper / syncgit.sh
Last active October 14, 2020 16:34
Simple script to synchronize a forked repository.
#!/bin/bash
# save old state
BRANCH=$(git branch | awk '/^\*/ { print $2}')
STASH=$(git stash -u)
# update all remotes
git fetch --all
# update master
@robkooper
robkooper / docker-compose.override.yml
Created December 13, 2018 18:23
PEcAn docker override
version: "3"
services:
# mount PEcAn web folder into web server, this allows for
# editing code in PHP and immediatly test the new code.
web:
volumes:
- ${HOME}/git/pecan/web:/var/www/html/pecan
- ${HOME}/git/pecan/docker/config.docker.php:/var/www/html/pecan/config.php