A compilation of .bat files that automates some tasks for me
To start using the commands / automations on this repository, first run ironMaiden.bat to add the source folder to the path variable.
ironMaiden.bat will create a backup of your user path variable, save it to %repoDirectory%/pathenv.backup and add the source folder of the .bat files to the user path variable.
If you have any problems after using this command, I recommend to restore the variable using the backup manually.
IMPORTANT: you must run ironMaiden.bat from the git repository folder.
I always get confuse if I'm on a Windows or Linux environment and end up using "ls" on Windows. So I created a .bat file that will simply call dir every time I ask for ls on Windows. That's all.
I love to use C:\git to put all my git repositories. It's simple, and I always know where to look.
So this command will check if C:\git exists, if not will create the directory. After that will execute "git clone" to the link provided.
- link: the .git link that should be cloned into the folder.
This creates a command that easily changes the branch of any repository. All you need to do is send the git repository name and the name of the branch you want to change.
For this to work, you first need to clone the repository using the "offspring" command. If you clone it in any other way, in any other folder it will not work.
- repo: the repository name that you want to change branch
- branch: the name of the branch you want to change
This command will simply execute a "git status" on the repo provided.
metallica MeuRepositorio
- repo: the repository name that you want to change branch
This command will open Visual Studio code on the provided repo.
detonautas MyRepo
- repo: the repository name that you want to open vscode
This command will show help.
- command (optional): the command that you need help to.
This command will list all directories (repositories) that you have on C:\git