To automate task like runing same series of git command.
- Copy the code and save it inside any text editor with
.ps1extension, into your project folder. - run
.\<name.ps1> "your commit message"
- Copy the code and save it inside any text editor with
.ps1extension, into your project folder. - type
Edit the system environment variablesand hit enter. - Look for
Environment Variables>User variablesorSystem variables>path>edit>new> copy thepathto your project folder or where thegitIt.ps1is >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.