r/PowerShell • • Dec 09 '25

Question Make custom commands in Powershell

Can you make a custom command in powershell, and if so, how?

I want to make a command that does:

git add -A

git commit -m "catchup"

git pull

In one go.

Also, feel free to tell me if making a lot of commits with the same name to pull is bad practice, though i want this for small projects with friends :)

30 Upvotes

41 comments sorted by

View all comments

Show parent comment

3

u/ankokudaishogun Dec 09 '25

You needing to commit means you made changes.
You really want to comment those changes, for minor they might be(es: "fix grammar in comment")

This is not just useful to Future-You who'll have to deep-dive in Present-You's code but also to whoever might end up getting your code(at some point you are going to PUSH, and that will push your entire commit history unless I'm getting GIT wrong)