git push script cause i am lazy lol
This commit is contained in:
parent
168cdd6cf8
commit
97bb4576af
1 changed files with 11 additions and 0 deletions
11
push_to_git.sh
Executable file
11
push_to_git.sh
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#! /usr/bin/bash
|
||||
|
||||
git add .
|
||||
git commit -m "$@"
|
||||
git push -u origin main
|
||||
git push -u github main
|
||||
|
||||
hash=$(git rev-parse --short HEAD)
|
||||
|
||||
echo "commit $hash pushed to origin and github"
|
||||
echo "commit message: $@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue