Skip to content
Snippets Groups Projects
Commit a9d931d9 authored by nimrod's avatar nimrod
Browse files

New git alias, initial (empty repo with an empty initial commit).

parent af93eb9c
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
set -eu
die () {
echo "$@"
exit 1
}
usage () {
die "Usage: $0 repo_name"
}
[ "$#" = "1" ] || usage
reponame="$1"
# shellcheck disable=SC2029
git init "$reponame"
(
cd "$reponame"
git commit --allow-empty --message "Initial empty commit."
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment