en Home Linux Containers Log Rotate HowTo install Google Earth on Debian Markdown Syntax Linux Snippets Linux backround process Network Safety Restart Bash Script Git Howto UTF-8 Character List Bridge-Utils for LXC Netbeans error CalDAV and CardDAV Server

Git Alias

Setting up Git Alias

Git Alias:

I thought this deserves it's own little page.

Following will create an alias for git add, commit, and push

git config alias.acp '! acp() { git add . && git commit -m \"$1\" && git push ; } ; acp'  

Use it like this:

git acp "your commit message"

Depending on your setup, you may also want to add git pull before you git add, but I am sure you can figure out how to do that. Isn't this something?

{{< lastmod >}}

Tags: howto git


First Created: 2015-01-28T20:07:01Z
Last Modified: 2026-04-05 19:35