Skip to content

Instantly share code, notes, and snippets.

@CarlosRA97
Last active July 7, 2019 18:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CarlosRA97/8251fac6a3f986c75d7cf75fc4e9efdd to your computer and use it in GitHub Desktop.
Save CarlosRA97/8251fac6a3f986c75d7cf75fc4e9efdd to your computer and use it in GitHub Desktop.
Git client for Docker RPI similar to Alpine Git
#!/bin/bash
docker run -ti --rm -v $1:/git -v $HOME/.ssh:/root/.ssh carlosra97/raspberrypi3-alpine-git ${@:2}
@CarlosRA97
Copy link
Author

Usage ./git.sh <docker_volume or directory> <git command>
Example: ./git.sh homeassistant-volume pull

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment