diff --git a/functions/git.fish b/functions/git.fish index 449d34a..4735c0d 100644 --- a/functions/git.fish +++ b/functions/git.fish @@ -28,6 +28,9 @@ function gsa # ─< If the user inputs 'y' or 'Y', execute the git submodule add command >───────────────── case 'y' 'Y' git submodule add --branch $branch --name $name $repo $path + git add . + git commit -m "Addet $name as a submodule" + git push # ─< If the user inputs 'n' or 'N', notify them to try again >────────────────────────────── case 'n' 'N'