Git Add,Commit,Push in a single command

Sometimes you may find it difficult to enter Git add and then do a commit and then push in a single command

Open the GIT and add this command

git config --global alias.acp "!f() { git add -A && git commit -m '$@' && git push; }; f"

Once you have added this in the GIT Prompt, there is no need to type all the 3 commands to commit a code ,All you need to do is type it


git acp -m "test"

Then this will commit the code as shown

Scroll to Top