|
|
@@ -7,6 +7,7 @@ git-ignore() {
|
|
|
else
|
|
|
ignore_file="./.gitignore"
|
|
|
fi
|
|
|
+ echo "## ${1}.gitignore" >> "${ignore_file}"
|
|
|
wget -qO- "${site}/${1}.gitignore" >> "${ignore_file}"
|
|
|
}
|
|
|
|
|
|
@@ -24,7 +25,7 @@ git-inject-clang-format() {
|
|
|
git-create() {
|
|
|
mkcd "${1}"; shift
|
|
|
git init
|
|
|
- touch .gitignore
|
|
|
+ echo '## User Defined Gitignore' > .gitignore
|
|
|
local message="Initializing repository"
|
|
|
if [[ $# -ge 1 ]]; then
|
|
|
for i in "$@"; do git-ignore "${i}"; done
|