This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function autopush() { | |
| # Usage: autopush "commit message" branch_name path_to_your_repo | |
| # Check if commit message and branch name are provided | |
| if [ "$#" -ne 3 ]; then | |
| echo "Usage: autopush \"commit message\" branch_name path_to_your_repo" | |
| else | |
| # Set variables from arguments | |
| COMMIT_MSG="$1" |