A big renaming
This commit is contained in:
parent
632eff130c
commit
dea4747965
9 changed files with 24 additions and 31 deletions
18
bin/commit
Executable file
18
bin/commit
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo 'What do you want to commit?'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -d '.git' ]; then
|
||||
git add -A
|
||||
git commit -m ''"$*"''
|
||||
git push -u origin master
|
||||
elif [ -d '.hg' ]; then
|
||||
hg addremove
|
||||
hg commit -m ''"$*"''
|
||||
hg push
|
||||
else
|
||||
echo 'No .git nor .hg directory found'
|
||||
fi
|
||||
10
bin/git+
10
bin/git+
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo 'Where is my commit message, bro?'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git add -A
|
||||
git commit -m ''"$*"''
|
||||
git push -u origin master
|
||||
10
bin/hg+
10
bin/hg+
|
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
echo 'Where is my commit message, huh?'
|
||||
exit 1
|
||||
fi
|
||||
|
||||
hg addremove
|
||||
hg commit -m ''"$*"''
|
||||
hg push
|
||||
Loading…
Add table
Add a link
Reference in a new issue