Git Visual Studio 2015 成功构建后自动提交

标签 git visual-studio github visual-studio-2015

我想在 Visual Studio 上自动化我的提交。但是,我不想每次文件更改时都提交。我只想 promise 成功的构建。所以我的代码总是“可构建的”。

主要原因是,我往往会忘记在大的更改之间进行提交,而且我总是在添加功能之前和之后进行提交。

最佳答案

我相信在项目的 PostBuild 事件下设置以下内容可能有效:

git commit -am "Succesful build at $(date -u +'%Y.%m.%d %H:%M:%S')"

关于Git Visual Studio 2015 成功构建后自动提交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33677581/

相关文章:

visual-studio - 如何使用 Visual Studio 2013 同时显示两个类

windows - 构建Qt时复制qmake.exe出错

GitHub 按内容查找文件

Git merge : keep only the staged commits and toss the rest?

git - 没有master时如何切换到master

git - `git merge -s theirs` 需要但不存在

Git/Perforce 排除规则 - 允许忽略同级文件是否存在?

visual-studio - VS2012 如何关闭编辑器选项卡着色?

git - 如何恢复中止或中断的 "git clone"?

git - 如何将 go pkg 添加到现有仓库?