Collection of scripts and utilities I create in my spare time to make my life easier when using git.
git-worktree-wrapper
: Manage worktrees faster and easilygit-worktree-airflow
: Manage Airflow DAGs within bare repositoriesgithub-now
: Create a Github repository from the CLIgit-partial-clone
: Clone a subdirectory of a repositorybashrc-utils
: Misc aliases and functions
Wrapper around git-worktree
that lets you easily create, switch and delete worktrees of bare repositories by using commands you already know: git checkout
and git branch
.
Post-checkout hook script that lets Airflow now the worktree of DAGs to load when the dags_folder
is pointing to a bare repository.
This script creates and pushes a new repository on Github from the current directory using the command line.
You'll need to generate an access token, as password authentication is deprecated. Save your token in ~/.github-token
.
Create a symlink of the script to your local path
ln -sr ./github-now/github-now.sh ~/.local/bin/github-now
Run the script
github-now
github-now
will prompt you to enter the description and privacy of the new repository. Then all you have to do is confirm or reject the operation.
This scripts clones a subdirectory of a github/gitlab repository.
Install the script (does not require sudo).
cd git-partial-clone/
./install.sh
Example
git-partial-clone --owner=lu0 --repo=vscode-settings --subdir=json/snippets
See the entire list of options and usage on the git-partial-clone repository.
You can also use the available docker image in your dockerfiles.
Note: The dockerfile is not THAT documented yet.
Paste them in your ~/.bashrc
.
- Stashes
- Diffs
- Commit logs
- ...