Quick GIT commit function for the Fish shell
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
Call to action
Did you like this post? You can help me back in several ways: (use the "reply" link on the right to comment or to contact me )
- Report any error/typo.
- Report something that could be improved.
- Like and repost!
- Follow me on Bluesky 🦋
- Subscribe to the RSS feed.
- Click on the More on Stackoverflow buttons to make me win "Announcer" badges 🏅.
Thank you for reading! And see you soon on Strangebuzz! 😉
