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

2

u/dodexahedron Dec 11 '25

Be sure to Test-Ketchup before you Add-Ketchup so you know if it has spoiled and can go get New-Ketchup before you Install-Ketchup and Get-FoodPoisoning.

1

u/life3_01 Dec 11 '25

In my 63 years, I’ve never had spoiled ketchup. Interesting.