Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
314f9dfc
Commit
314f9dfc
authored
Aug 24, 2018
by
jack
Committed by
Marc Cornellà
Aug 23, 2018
Browse files
github: fix new_gh to force-add .gitignore (#7086)
parent
abca62ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/github/github.plugin.zsh
View file @
314f9dfc
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment