In fact, it is in the git installation directory. Create a git-xxx file and use shell to write that file. Then use
git xxx
It’s ready to run. .
For example, if your requirement is to use git add, git commit, and git push continuously, you can add the "git-acp" file in that directory with the following content
Method 1:
From here: http://mayecn.com/blog/2013/05/03/multiple-alias/
First execute in git bash:
alias blog='git add .;git commit -m "blog update"';git push origin gh-pages
When you want to update your blog in the future, just do it directly
blog
Method 2:
From here: http://stackoverflow.com/questions/7534184/git-alias-multiple-commands-and-parameters
Execute in git bash
git config --global alias.blog '!git add . && git commit -m "blog update" && git push origin gh-pages'
or
Edit the .gitconfig file and add this paragraph:
When you want to update your blog in the future, execute
git blog
In fact, it is in the git installation directory. Create a git-xxx file and use shell to write that file. Then use
It’s ready to run. .
For example, if your requirement is to use git add, git commit, and git push continuously, you can add the "git-acp" file in that directory with the following content
Then, in the directory that needs to be called, call
That’s it. .
Also, if you don’t use shell, but use python or other programming language, it is also possible. .
Sao Nian. Use TortoiseGit. Little turtle. Same as svn. https://code.google.com/p/tortoisegit/