Create gists from the command line and track them with git.
Create a gist from files a.txt and src/b.txt with a description clone
the result into /tmp/mygist.
giz create -o /tmp/mygist -d "my gist description" ./a.txt ./src/b.txtnix-env -i -f https://github.com/thalesmg/giz/archive/master.tar.gz(here, it is assumed that /home/user/bin in the current user’s PATH)
nix build .
ln -sf $PWD/result/bin/giz /home/user/bin/gizCreate a config.json file at XDG_CONFIG_HOME/giz (or
$HOME/.config/giz) with the path that =pass= will use to get yout
Github personal access token (PAT). This PAT must have at least the
gist scope.
Example:
{
"pass-path": "github.com/tokens/giz-token"
}Or else pass that path as an argument with --pass-path:
giz create --pass-path "github.com/tokens/giz-token" -o /tmp/mygist a.txt