Windows batch file - start git bash and run git commands
问题 I am on windows-10. I want to create a batch-file to automate: Starting Git Bash in project folder Running the following Git commands: eval $(ssh-agent -s) ssh-add ~/.ssh/github_rsa git remote add origin git@github.com:git_user_name/git_repository_name.git My current batch file below successfully starts Git Bash in the project folder, but I have not found anything which helps me learn how to run the git commands. @echo off cd /d C:\project_folder start "" "%PROGRAMFILES%\Git\bin\sh.exe" -