diff options
| author | Bobby <[email protected]> | 2022-11-05 02:28:48 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-11-05 02:28:48 -0400 |
| commit | c6370070e95e5969ab8bc80b6017e6ab9aa06777 (patch) | |
| tree | 47334079acfdb039e1aad93ac9eec46ae9ad33a3 /commit.sh | |
| parent | f1d42a625654025a112c00c82882dd59ce181165 (diff) | |
| download | texty-c6370070e95e5969ab8bc80b6017e6ab9aa06777.tar.xz texty-c6370070e95e5969ab8bc80b6017e6ab9aa06777.zip | |
fix: Updated Readme and fixed commit script
Diffstat (limited to 'commit.sh')
| -rwxr-xr-x | commit.sh | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -57,13 +57,15 @@ commit() { then msg="$3: $2" # If the branch is the current branch, commit the files - git commit $1 -m "$msg" + git add $1 + git commit -m "$msg" git push origin $branch else # If the branch is not the current branch, checkout the branch and commit the files git checkout $branch msg="$3: $2" - git commit $1 -m "$msg" + git add $1 + git commit -m "$msg" git push origin $branch fi } |
