Publish to GitHub with Mathematica on Windows
2013-06-14 · Mathematica
在 Windows 8.1 下,用 Mathematica 生成网页后推送到 GitHub 的简要记录,重点是如何执行 git push。
方法一:自动填入用户名和密码
下载 git-credential-winstore 等凭证助手,安装到 PortableGit 的 bin 目录,可实现一次保存、后续免输入。
方法二:用 .bat 调用 Git
把 GitShell 中常用的命令写入 PortableGit 的 git-cmd.bat 或自定义 .bat,在 Mathematica 中通过 Run 或外部进程调用该 .bat,实现 cd 到仓库目录、git add、git commit、git push 等操作。