Batch automatic Git push

Use Git with more, after each modified files need to knock a few commands:

git add

git commit

git push

······

too troublesome

Think of using a batch (.bat) to automate this process (Note: under Windows)

 

Create a bat file in the local Git repository directory, such as GitUpdate.bat

Add Content:

1 git add *
2 git commit -m "%date% %time%: Updated By Edwin Xu"
3 git push
4 exit

Description:

Information can git commit with custom, I here% date% is the date,% time% is a specific time, which is calling variables under MSDOS mode, you can customize the information

 

 

 

Guess you like

Origin www.cnblogs.com/XT-xutao/p/12021789.html