refactor: combine bin directories
This commit is contained in:
parent
f3f1051f1f
commit
459428a979
16 changed files with 0 additions and 38 deletions
15
bin/git-create-new-tracking-branch
Executable file
15
bin/git-create-new-tracking-branch
Executable file
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$#" -lt 1 ]; then
|
||||
echo "Error: Not enough arguments."
|
||||
exit l
|
||||
fi
|
||||
|
||||
# Create a new branch including any additional arguments.
|
||||
git checkout -b "$@"
|
||||
|
||||
# Push the branch to origin, bypassing any Git hooks.
|
||||
new_branch_name=$1
|
||||
git push --no-verify -u origin "${new_branch_name}:opd-${new_branch_name}"
|
Loading…
Add table
Add a link
Reference in a new issue