1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-12 00:40:07 +00:00

github: fix new_gh to force-add .gitignore (#7086)

This commit is contained in:
jack 2018-08-24 02:01:01 +08:00 committed by Marc Cornellà
parent abca62add1
commit 314f9dfcb3

View file

@ -36,7 +36,7 @@ new_gh() { # [DIRECTORY]
print '.*'"\n"'*~' >> .gitignore
git add [^.]* \
|| return
git add .gitignore \
git add -f .gitignore \
|| return
git commit -m 'Initial commit.' \
|| return