Kla*_*urn 15
你可以使用git hooks.
该pre-commit钩明确.您可以.git/hooks/pre-commit.sample通过删除.sample后缀并对其进行编辑来从示例中创建一个.pre-commit将在提交之前执行内容.
它可能包含这样的东西
#!/bin/sh
command-that-increases-version version.text
git add version.text
Run Code Online (Sandbox Code Playgroud)
version.text然后,任何修改都将包含在提交中.
| 归档时间: |
|
| 查看次数: |
5285 次 |
| 最近记录: |