Skip to content

Conversation

@StephaneDelcroix
Copy link
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Description

Adds Git workflow instructions for Copilot CLI to the repository instructions (.github/copilot-instructions.md).

Rules added:

  1. Never commit directly to main - Always create a feature branch
  2. No rebase, squash, or force-push unless explicitly requested by the user
  3. Ask before pushing when amending an existing PR - Exception: proceed if pushing is explicitly part of the instructions

These rules help prevent accidental history rewrites and ensure users can review changes before they are pushed to remote.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds Git workflow guidelines specifically for Copilot CLI to prevent common version control mistakes when working with AI assistants. The rules establish safe practices around branch management, history preservation, and push workflows.

Key Changes

  • Added three critical Git rules: no direct commits to main, no history rewriting by default, and requiring user confirmation before pushing PR updates
  • Provided example bash commands demonstrating the safe Git workflow pattern
  • Positioned the guidelines in the Contribution Guidelines section after the Branching subsection

@jfversluis jfversluis merged commit 632822d into main Nov 27, 2025
9 checks passed
@jfversluis jfversluis deleted the copilot/git-workflow-instructions branch November 27, 2025 10:40
This was referenced Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants