To automate task like runing same series of git command.
- Copy the code and save it inside any text editor with
.ps1
extension, into your project folder. - run
.\<name.ps1> "your commit message"
- Copy the code and save it inside any text editor with
.ps1
extension, into your project folder. - type
Edit the system environment variables
and hit enter. - Look for
Environment Variables
>User variables
orSystem variables
>path
>edit
>new
> copy thepath
to your project folder or where thegitIt.ps1
is >paste
. Close all the window by clickingok
. - Restart the terminal/shell/vscode.
- run
gitIt.ps1 "commite message"
.
NOTE: You can name the file anything you want.
That is it. Feel free to customize the function to suit your scenario. 🙌
gitIt-1
is something you want to use in case the first code commits only [0], even if you provided a message.