返回 Skill 列表
extension
分类: 开发与工程无需 API Key

software-change-management-using-git

在任何任务完成时、开始任何非琐碎的任务之前,或者每当使用git或被要求提交代码时使用此技能。

person作者: jakexiaohubgithub

Software Change Management Using Git

Workflow Automation for Git Commit Management

  1. Examine all changes since the last commit:

    • It should do a deepthink to truely understand the changes from a high-level. Think about the consequences and what the main purpose for this change is in terms of the direction we're going. Also, do a diff between the trunk for a further zoomed out view in terms of the full branch and how this commit contributes to the full story. Hand off findings via stream chaining to step 2.
    • Look at any untracked files and determine if they should be added to the commit or inserted into the .gitignore. Perform the correct action.
  2. Craft an idiomatic git commit message:

    • Take the data handed to you from step 1 and create a single-line description, followed by a blank line and then an itemized high-level changelist
    • Commit and push to HEAD
  3. Resolve any edge cases:

    • If push fails, resolve by pulling from head, resolving any conflicts, rebasing, or whatever needs to be done to rectify the situation