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
| # Create a new clone and branch for parallel development. | |
| # Usage: ga <branch-name> [base-branch] | |
| ga() { | |
| if [[ -z "$1" ]]; then | |
| echo "Usage: ga <branch-name> [base-branch]" | |
| return 1 | |
| fi | |
| local branch="$1" | |
| local repo_name="$(basename "$PWD")" | |
| local repo_url="$(git remote get-url origin)" |