This repository contains a collection of Bash scripts that simplify and automate common Git operations.
- Run a script using bash command:
source <scriptname>.sh
- Or, make it executable and run directly:
chmod +x <scriptname>.sh ./<scriptname>.sh
Run or test the scripts in an isolated container (you may need sudo access):
docker build -t bash-env .
docker image prune
docker run -it --rm --privileged -v "$PWD":/hit-the-git bash-env
What this does:
- Builds a
Dockerimage from the includedDockerfile - Prunes dangling docker images after building
- Mounts the current repository into
/hit-the-gitinside the container - Starts an interactive
Bashenvironment withGitavailable