Important
If you find a useful GIT command - be sure to send a PR here as well :) Refer to contribution format guide to send a PR.
- Git Essentials & Hidden Gems: Start here to discover commands that can improve your workflow and understanding of Git.
- git maintenance start: Runs a cronJob in background for the specified repo for periodic maintenance.
- git request-pull: Generate a request to pull changes into a repository.
- Cleanup Branches Fast ⚡: Quickly view and clean up local branches using Bash or PowerShell, including removing branches whose remote is gone.
- Delete Local Branches Whose Remote is Gone (Bash): Delete all local branches whose remote counterpart has been deleted, using Bash.
- Delete Local Branches Whose Remote is Gone (PowerShell): Delete all local branches whose remote counterpart has been deleted, using PowerShell.
- View and Clean Up Local Git Branches (Bash): Scripts to view and clean up local branches using Bash.
- View and Clean Up Local Git Branches (PowerShell): Scripts to view and clean up local branches using PowerShell.
- Git Command Reference (Full List): A comprehensive list of Git commands used in this project.
- git init --bare: Initialize a bare repository, typically used for remote repositories.
- git clone --mirror : Clone a repository in mirror mode, including all refs and branches.
- Useful Rare Git Commands You Never Heard Of: A collection of lesser-known but powerful Git commands.
- git replace : Temporarily substitute one commit for another.
- How to Use git push --force-with-lease Safely: Safely force-push to a branch without overwriting others' work.
- Past commits of a specific file: See all commits and changes for a specific file.
- Git Clean: Remove Untracked Files and Directories: Remove untracked files and directories from your repository.
- How to Use git worktree Safely: Work on multiple branches simultaneously without switching.
- Sharing Changes as Patch Files: Generate and share patch files for committed or uncommitted changes.
- Pull Changes of Specific Files from a Commit: Restore or pull changes for specific files from a past commit without reverting the entire commit.
Note
Want to contribute? Be a contributor or author by following the Contribution Format Guide , also add your favorite resources in References & Resources and submit a Pull Request.
A list of individuals who have contributed to this project. Add your name and link in CONTRIBUTING.md. Please follow the instructions from FORMAT.md when contributing.