# k88hudson/git-flight-rules

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/k88hudson-git-flight-rules).**

42,472 stars · 3,173 forks · CC-BY-SA-4.0

## Links

- GitHub: https://github.com/k88hudson/git-flight-rules
- awesome-repositories: https://awesome-repositories.com/repository/k88hudson-git-flight-rules.md

## Description

git-flight-rules is a collection of curated guidelines, operational resources, and a command reference for managing version control with Git. It provides a set of procedure-based rules and best practices designed to organize code history, branches, and collaborative development.

The project distinguishes itself by providing structured workflows for complex history manipulation and data recovery. This includes specific guidance on rewriting commit history to remove sensitive data, using the reference log to recover lost work, and employing binary searches to isolate regressions.

The resource covers a broad range of capabilities, including repository management, collaboration workflows for syncing forks and pull requests, and auditing tools for inspecting historical file states. It also addresses repository optimization through size reduction and the management of nested submodules.

## Tags

### Development Tools & Productivity

- [Git Workflows](https://awesome-repositories.com/f/development-tools-productivity/git-workflows.md) — Supplies a collection of curated guidelines and best practices for managing Git-based development lifecycles.
- [Fork-And-Pull Request Workflows](https://awesome-repositories.com/f/development-tools-productivity/development-workflow/collaboration-patterns/fork-and-pull-request-workflows.md) — Guides the process of syncing forks, creating pull requests, and sharing changes for remote projects.
- [Git References](https://awesome-repositories.com/f/development-tools-productivity/git-references.md) — Provides a comprehensive set of quick-reference guides and cheat sheets for complex Git operations.
- [History Rewriting](https://awesome-repositories.com/f/development-tools-productivity/history-rewriting.md) — Provides detailed procedures for interactive rebasing and reset operations to modify repository history.
- [Reference Log Recovery](https://awesome-repositories.com/f/development-tools-productivity/reference-log-recovery.md) — Provides the procedure for restoring deleted branches or commits by locating hashes in the internal reference log. ([source](https://github.com/k88hudson/git-flight-rules/blob/master/README.md))
- [Repository Management Guidelines](https://awesome-repositories.com/f/development-tools-productivity/repository-management-guidelines.md) — Provides guidance on initializing repositories, managing branches, and synchronizing local forks.
- [VCS Data Recovery](https://awesome-repositories.com/f/development-tools-productivity/vcs-data-recovery.md) — Provides structured workflows for restoring accidentally deleted files, branches, or tags by searching the reference log.
- [Git History Cleaners](https://awesome-repositories.com/f/development-tools-productivity/version-control-repository-tools/version-control-managers/repository-utilities/history-manipulation-tools/git-history-cleaners.md) — Outlines workflows for permanently removing sensitive credentials and keys from repository history. ([source](https://github.com/k88hudson/git-flight-rules/blob/master/README.md))
- [Commit History Analysis](https://awesome-repositories.com/f/development-tools-productivity/commit-history-analysis.md) — Provides methods for searching and analyzing the commit history for specific strings, authors, or changes. ([source](https://github.com/k88hudson/git-flight-rules/blob/master/README.md))
- [Commit Management](https://awesome-repositories.com/f/development-tools-productivity/commit-management.md) — Provides techniques for updating commit messages, changing author identities, and fixing commit history. ([source](https://github.com/k88hudson/git-flight-rules/blob/master/README.md))
- [Change Migration Workflows](https://awesome-repositories.com/f/development-tools-productivity/commit-management/change-migration-workflows.md) — Explains how to reassign specific file changes from one commit to another via interactive rebase. ([source](https://github.com/k88hudson/git-flight-rules/blob/master/README.md))
- [Historical State Auditing](https://awesome-repositories.com/f/development-tools-productivity/commit-tracking/historical-state-auditing.md) — Explains how to inspect specific changes in commits and view historical versions of files. ([source](https://github.com/k88hudson/git-flight-rules#readme))
- [Regression Analysis Tools](https://awesome-repositories.com/f/development-tools-productivity/debugging-tools/regression-analysis-tools.md) — Details the use of binary search (bisect) across commit history to isolate the source of regressions. ([source](https://github.com/k88hudson/git-flight-rules/blob/master/README.md))
- [File Restoration](https://awesome-repositories.com/f/development-tools-productivity/file-restoration.md) — Explains the process of recovering a specific file from a previous commit where the file last existed. ([source](https://github.com/k88hudson/git-flight-rules/blob/master/README.md))
- [Upstream Synchronization](https://awesome-repositories.com/f/development-tools-productivity/upstream-synchronization.md) — Guidelines for synchronizing a local fork with the latest updates from the original upstream repository. ([source](https://github.com/k88hudson/git-flight-rules/blob/master/README.md))
- [Rebase Operations](https://awesome-repositories.com/f/development-tools-productivity/version-control-repository-tools/version-control-managers/git-utilities/rebase-operations.md) — Explains how to move sequences of commits to a new base to maintain linear project history. ([source](https://github.com/k88hudson/git-flight-rules/blob/master/README.md))
- [Interactive Staging Interfaces](https://awesome-repositories.com/f/development-tools-productivity/version-control-repository-tools/version-control-managers/repository-utilities/working-directory-controllers/interactive-staging-interfaces.md) — Explains how to use interactive mode to selectively stage individual lines or hunks of code. ([source](https://github.com/k88hudson/git-flight-rules#readme))
- [Working Tree Management](https://awesome-repositories.com/f/development-tools-productivity/version-control-repository-tools/version-control-managers/repository-utilities/working-directory-controllers/working-tree-management.md) — Describes how to discard uncommitted changes and remove untracked files to clean the working tree. ([source](https://github.com/k88hudson/git-flight-rules#readme))
- [Version Tag Management](https://awesome-repositories.com/f/development-tools-productivity/version-tag-management.md) — Guidelines for creating, deleting, and recovering version tags to mark repository history. ([source](https://github.com/k88hudson/git-flight-rules/blob/master/README.md))

### Software Engineering & Architecture

- [Version Control Best Practices](https://awesome-repositories.com/f/software-engineering-architecture/version-control-best-practices.md) — Provides a collection of curated, procedure-based rules and best practices for consistent Git repository management.
- [Repository Auditing](https://awesome-repositories.com/f/software-engineering-architecture/repository-auditing.md) — Describes using binary searches and historical commit inspection to isolate bugs and regressions.
- [Patch Generators](https://awesome-repositories.com/f/software-engineering-architecture/code-patching-engines/patch-generators.md) — Explains how to generate standalone commit files to share changes without a shared remote host.
- [Pull Request Workflows](https://awesome-repositories.com/f/software-engineering-architecture/project-management-governance/project-governance/contribution-guidelines/pull-request-workflows.md) — Includes best practices and instructions for contributing code changes via pull request workflows. ([source](https://github.com/k88hudson/git-flight-rules#readme))

### DevOps & Infrastructure

- [Branch Merging Strategies](https://awesome-repositories.com/f/devops-infrastructure/infrastructure/version-control-systems/branch-merging-strategies.md) — Outlines different merge strategies, including squash and non-fast-forward merges, for integrating branches. ([source](https://github.com/k88hudson/git-flight-rules/blob/master/README.md))
- [Remote Fork Synchronization](https://awesome-repositories.com/f/devops-infrastructure/remote-fork-synchronization.md) — Describes the process of updating local forks with upstream changes and pushing work to remote servers. ([source](https://github.com/k88hudson/git-flight-rules#readme))
- [Branch Management Utilities](https://awesome-repositories.com/f/devops-infrastructure/version-control-management/version-control-utilities/branch-management-utilities.md) — Offers a reference for tracking, renaming, and navigating local and remote branches. ([source](https://github.com/k88hudson/git-flight-rules#readme))
- [Data Recovery Procedures](https://awesome-repositories.com/f/devops-infrastructure/version-control-management/version-control-utilities/commit-history-management/data-recovery-procedures.md) — Offers structured procedures for restoring deleted files and recovering lost commits from the reference log.
- [Commit History Management](https://awesome-repositories.com/f/devops-infrastructure/version-control-management/version-control-utilities/commit-history-management.md) — Describes using reset operations to remove specific commits from the project history. ([source](https://github.com/k88hudson/git-flight-rules/blob/master/README.md))

### Testing & Quality Assurance

- [Regression Isolation](https://awesome-repositories.com/f/testing-quality-assurance/regression-isolation.md) — Provides structured workflows for employing binary searches to isolate the specific commit that introduced a regression.

### Part of an Awesome List

- [Git and Version Control Tools](https://awesome-repositories.com/f/awesome-lists/devtools/git-and-version-control-tools.md) — Provides a set of utilities and guidelines to simplify Git workflows and repository management.
- [Version Control](https://awesome-repositories.com/f/awesome-lists/devtools/version-control.md) — Comprehensive guide for troubleshooting and fixing Git issues.

### Networking & Communication

- [Version Control Stashing](https://awesome-repositories.com/f/networking-communication/terminal-state-preservation/version-control-stashing.md) — Provides guidance on using the stash to temporarily save uncommitted changes. ([source](https://github.com/k88hudson/git-flight-rules#readme))

### Operating Systems & Systems Programming

- [Patch-Based Contributions](https://awesome-repositories.com/f/operating-systems-systems-programming/system-administration-maintenance/file-system-management/file-systems/file-change-detection/patch-based-contributions.md) — Explains how to create standalone files containing commit changes to be shared and applied manually. ([source](https://github.com/k88hudson/git-flight-rules#readme))
