git commit and push via batch file on Windows

前端 未结 3 1766
眼角桃花
眼角桃花 2021-02-07 05:31

I do same task often of committing and pushing changes to remote branch. Being lazy sometimes, I needed to put set of git commands to automatically perform these steps:

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-07 06:05

    Try this one !!

    cd c://TESTS/path
    set HOME=%USERPROFILE%
    GIT COMMAND GOES HERE
    pause
    

提交回复
热议问题