[Fish shell] Quick GIT commit function for Fishshell

Published on 2024-08-31 • Modified on 2024-08-31

This snippet shows how to create a quick GIT commit function for Fishshell. It is a function I use daily; it's convenient and saves me a lot of time. It adds all files and commits with an optional message we can pass as an argument and then push to the remote repository.


function ci -d "Quick-commit"
    git add .
    git commit -a --allow-empty-message -m "$argv"
    git push
end

 More on Stackoverflow   Read the doc  Random snippet

  Work with me!