Skip to content

Instantly share code, notes, and snippets.

@wiedehopf
wiedehopf / script.sh
Created January 2, 2021 11:05 — forked from serhiicherepanov/script.sh
shallow update not allowed
Here's what I ended up doing - it worked perfectly. Note that I was moving from my old host (Bitbucket) to my new one (Gitlab). My comments are above the commands:
# First, shallow-clone the old repo to the depth we want to keep
git clone --depth=50 https://...@bitbucket.org/....git
# Go into the directory of the clone
cd clonedrepo
# Once in the clone's repo directory, remove the old origin
git remote remove origin
@wiedehopf
wiedehopf / Commands for management:
Last active December 14, 2019 09:34
readsb template systemd service
# enable start of all instances system startup:
systemctl enable readsb.service
# start/restart all instances:
systemctl restart readsb
# stop all:
systemctl stop readsb
# restart individual: