A small python script for automating the Git process. Using it alongside the vimscript in Vim allows you to just type:
:AutoGit <message>
And this will do the following:
git add -A
git commit -m '<message>'
git push origin master
- If github requests user & pw, AutoGit will kill the process
and instead begin configuring your repo so it never has to
ask for your user & pw again. i.e.
- Find repo name
- Request
<USER>
- Request
<PW>
git config remote.origin.url https://<USER>:<PW>@github.com/<USER>/<REPO_NAME>
You can also call the python script by itself if you prefer:
$ python AutoGit.py <path> <message>
cd ~/.vim/plugin
git clone https://github.com/mitchmindtree/AutoGit.git
Note: You may need to actually make the .vim/
and plugin/
directories if
haven't already for another plugin.
-
[Docopt] (http://docopt.org/) for the CLI.
$ pip install docopt
-
[pexpect] (http://pexpect.readthedocs.org/en/latest/) for working with Git CLI.
$ pip install pexpect
I'm not sure if it'll work on Windows, but it should work on Mac / Linux.
by Mitchell Nordine