demand:
Main branch: master
Other branches: dev, hardy
master the main branch, formal dress code is not available for testing and development, dev is the testing service code, testing and development.
In the case of only one person, only two branches enough, but more than one person, you need to create a different branch of the code in order to avoid confusion, therefore I was hardy branch branch code, developers submitted to the dev branch pass a test, and then from product testers and test people.
In this scenario, I despise development tools git commit feature too cumbersome, to write a piece of code deficiencies, also please let me know.
D CD: / WWW /% ~ N0 Git Status PAUSE echo "Please enter a comment" SET / P In Flag = the IF "% In Flag%" == "" (SET In Flag = "Hardy") Git the Add. Git the commit -m "% In Flag% " echo" has the commit " PAUSE Git Push echo" uploaded " PAUSE Git Checkout dev Git pull echo" has pulled the code " Git Checkout Hardy Git merge dev echo" has merge code " PAUSE Git Push echo" uploaded " Git Origin Hardy the Push: dev PAUSE