Skip to content

Instantly share code, notes, and snippets.

# -> Git
# gcw
# sets local username + email in repo
# Usage: gcw git-repo-to-clone
git_clone_wrapper() {
last_arg="${@: -1}"
last_arg_ending="${last_arg: -4}"
# Based on https://www.git-scm.com/docs/git-clone last argument can be a specific directory to save into
# so checking if the last argument is a git repo: