diff --git a/contents/apply-diff-file.md b/contents/apply-diff-file.md index 6f21bb9..4c0b58b 100644 --- a/contents/apply-diff-file.md +++ b/contents/apply-diff-file.md @@ -25,13 +25,8 @@ git apply changes.diff 1. Run '`git apply changes.diff' to apply the changes from a diff file`. -#### Tags -`diff`, `apply`, `uncommitted` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: Patch vs Diff: Quick Reference](./patch-vs-diff-quick-reference.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: diff, apply, uncommitted_ diff --git a/contents/apply-patch-with-commit-metadata.md b/contents/apply-patch-with-commit-metadata.md index a1136e2..f3172a1 100644 --- a/contents/apply-patch-with-commit-metadata.md +++ b/contents/apply-patch-with-commit-metadata.md @@ -25,13 +25,8 @@ git am my-changes.patch 1. Run '`git am my-changes.patch' to apply the patch and preserve commit messages, authorship, and timestamps`. -#### Tags -`patch`, `am`, `apply` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: Create Patch from Uncommitted Changes](./create-patch-from-uncommitted-changes.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: patch, am, apply_ diff --git a/contents/check-existing-worktrees.md b/contents/check-existing-worktrees.md index 94d8ccb..0d0f72e 100644 --- a/contents/check-existing-worktrees.md +++ b/contents/check-existing-worktrees.md @@ -23,13 +23,8 @@ git worktree list 1. List all active worktrees. -#### Tags -`worktree`, `list` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: Create a New Worktree](./create-a-new-worktree.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: worktree, list_ diff --git a/contents/create-a-new-worktree.md b/contents/create-a-new-worktree.md index 687a354..df21ca3 100644 --- a/contents/create-a-new-worktree.md +++ b/contents/create-a-new-worktree.md @@ -29,13 +29,8 @@ git worktree add ../feature-branch feature - The target path must not already be a git repository. -#### Tags -`worktree`, `add` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: Remove a Worktree](./remove-a-worktree.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: worktree, add_ diff --git a/contents/create-patch-from-last-commit-s.md b/contents/create-patch-from-last-commit-s.md index 76ee769..5372b1c 100644 --- a/contents/create-patch-from-last-commit-s.md +++ b/contents/create-patch-from-last-commit-s.md @@ -39,13 +39,8 @@ git format-patch origin/main..HEAD --stdout > my-changes.patch - [Official Docs](https://git-scm.com/docs/git-format-patch) -#### Tags -`patch`, `format-patch`, `committed` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: Apply Patch with Commit Metadata](./apply-patch-with-commit-metadata.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: patch, format-patch, committed_ diff --git a/contents/create-patch-from-uncommitted-changes.md b/contents/create-patch-from-uncommitted-changes.md index 5b35227..608db0f 100644 --- a/contents/create-patch-from-uncommitted-changes.md +++ b/contents/create-patch-from-uncommitted-changes.md @@ -33,13 +33,8 @@ git diff > changes.diff - [Official Docs](https://git-scm.com/docs/git-diff) -#### Tags -`diff`, `uncommitted`, `snapshot` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: Apply Diff File](./apply-diff-file.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: diff, uncommitted, snapshot_ diff --git a/contents/flags-and-their-uses.md b/contents/flags-and-their-uses.md index 71cbaf3..b3f0678 100644 --- a/contents/flags-and-their-uses.md +++ b/contents/flags-and-their-uses.md @@ -14,11 +14,6 @@ - `move`: Moves a worktree to a different location. -#### Tags -`worktree`, `flags` +--- -#### Author -mike-rambil - -#### Last Updated -2024-06-10 +_Author: mike-rambil • Updated: 2024-06-10 • Tags: worktree, flags_ diff --git a/contents/git-clean-remove-untracked-files-and-directories.md b/contents/git-clean-remove-untracked-files-and-directories.md index a2674e3..05be31e 100644 --- a/contents/git-clean-remove-untracked-files-and-directories.md +++ b/contents/git-clean-remove-untracked-files-and-directories.md @@ -72,11 +72,6 @@ git clean -i - [Official Docs](https://git-scm.com/docs/git-clean) -#### Tags -`clean`, `untracked`, `workspace` +--- -#### Author -mike-rambil - -#### Last Updated -2024-06-10 +_Author: mike-rambil • Updated: 2024-06-10 • Tags: clean, untracked, workspace_ diff --git a/contents/git-clone-mirror-repository.md b/contents/git-clone-mirror-repository.md index 9f108e4..7e5035c 100644 --- a/contents/git-clone-mirror-repository.md +++ b/contents/git-clone-mirror-repository.md @@ -27,11 +27,6 @@ git clone --mirror https://github.com/example/repo.git 1. Run `git clone --mirror ` to create a full backup or migration. -#### Tags -`clone`, `mirror`, `backup` +--- -#### Author -mike-rambil - -#### Last Updated -2024-06-10 +_Author: mike-rambil • Updated: 2024-06-10 • Tags: clone, mirror, backup_ diff --git a/contents/git-command-reference-full-list.md b/contents/git-command-reference-full-list.md index 075f690..1c8316e 100644 --- a/contents/git-command-reference-full-list.md +++ b/contents/git-command-reference-full-list.md @@ -9,15 +9,6 @@ A comprehensive list of Git commands used in this project, formatted according to our standard. -#### Tags -`reference`, `all-commands` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - --- ### Subcommands @@ -81,3 +72,7 @@ mike-rambil #### Last Updated 2024-06-10 + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: reference, all-commands_ diff --git a/contents/git-init-bare.md b/contents/git-init-bare.md index b4d4276..16312a9 100644 --- a/contents/git-init-bare.md +++ b/contents/git-init-bare.md @@ -25,13 +25,8 @@ git init --bare my-repo.git 1. Run `git init --bare my-repo.git` to create a bare repository. -#### Tags -`init`, `bare`, `repository` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: git clone --mirror ](./git-clone-mirror-repository.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: init, bare, repository_ diff --git a/contents/git-maintenance-start.md b/contents/git-maintenance-start.md index 931ba85..ea44515 100644 --- a/contents/git-maintenance-start.md +++ b/contents/git-maintenance-start.md @@ -29,13 +29,8 @@ git maintenance start - [Official Docs](https://git-scm.com/docs/git-maintenance) -#### Tags -`maintenance`, `automation` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: git request-pull](./git-request-pull.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: maintenance, automation_ diff --git a/contents/git-replace-old-commit-new-commit.md b/contents/git-replace-old-commit-new-commit.md index e2df9aa..95cdc03 100644 --- a/contents/git-replace-old-commit-new-commit.md +++ b/contents/git-replace-old-commit-new-commit.md @@ -25,11 +25,6 @@ git replace abc123 def456 1. Run `git replace ` to test or patch history. -#### Tags -`replace`, `history` +--- -#### Author -mike-rambil - -#### Last Updated -2024-06-10 +_Author: mike-rambil • Updated: 2024-06-10 • Tags: replace, history_ diff --git a/contents/git-request-pull.md b/contents/git-request-pull.md index 1c2c7cc..c5557bb 100644 --- a/contents/git-request-pull.md +++ b/contents/git-request-pull.md @@ -31,13 +31,8 @@ git request-pull v1.0 https://github.com/example/repo.git v1.1 - [Official Docs](https://git-scm.com/docs/git-request-pull) -#### Tags -`collaboration`, `pull-request` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: View and Clean Up Local Git Branches (Bash)](./view-and-clean-up-local-git-branches-bash.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: collaboration, pull-request_ diff --git a/contents/how-to-use-git-push-force-with-lease-safely.md b/contents/how-to-use-git-push-force-with-lease-safely.md index d63ea77..885c465 100644 --- a/contents/how-to-use-git-push-force-with-lease-safely.md +++ b/contents/how-to-use-git-push-force-with-lease-safely.md @@ -42,11 +42,6 @@ git push --force-with-lease - [Medium Article](https://medium.com/@sahilsahilbhatia/git-push-force-with-lease-vs-force-ecae72601e80) -#### Tags -`push`, `force`, `safe` +--- -#### Author -mike-rambil - -#### Last Updated -2024-06-10 +_Author: mike-rambil • Updated: 2024-06-10 • Tags: push, force, safe_ diff --git a/contents/how-to-use-git-worktree-safely.md b/contents/how-to-use-git-worktree-safely.md index af32605..9c59507 100644 --- a/contents/how-to-use-git-worktree-safely.md +++ b/contents/how-to-use-git-worktree-safely.md @@ -9,15 +9,6 @@ `git worktree` allows you to manage multiple working directories linked to a single Git repository. It helps developers work on multiple branches simultaneously without switching branches in the same directory. -#### Tags -`worktree`, `branches`, `advanced` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - --- ### Subcommands @@ -192,3 +183,7 @@ mike-rambil #### Last Updated 2024-06-10 + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: worktree, branches, advanced_ diff --git a/contents/miscellaneous-orphaned-git-commands.md b/contents/miscellaneous-orphaned-git-commands.md index 527d097..f9ceb56 100644 --- a/contents/miscellaneous-orphaned-git-commands.md +++ b/contents/miscellaneous-orphaned-git-commands.md @@ -9,15 +9,6 @@ This file collects useful Git commands and scripts that were previously only in the README and not referenced elsewhere in this repository. -#### Tags -`misc`, `cleanup`, `advanced` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - --- ### Subcommands @@ -165,3 +156,7 @@ mike-rambil #### Last Updated 2024-06-10 + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: misc, cleanup, advanced_ diff --git a/contents/past-commits-of-a-specific-file.md b/contents/past-commits-of-a-specific-file.md index 704e78d..bbca9b7 100644 --- a/contents/past-commits-of-a-specific-file.md +++ b/contents/past-commits-of-a-specific-file.md @@ -9,15 +9,6 @@ You can see all commits related to a specific file using Git commands. Here are a few ways to do it: -#### Tags -`history`, `inspection`, `file` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - --- ### Subcommands @@ -150,3 +141,7 @@ mike-rambil #### Last Updated 2024-06-10 + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: history, inspection, file_ diff --git a/contents/patch-vs-diff-quick-reference.md b/contents/patch-vs-diff-quick-reference.md index ff87c19..03b3cdc 100644 --- a/contents/patch-vs-diff-quick-reference.md +++ b/contents/patch-vs-diff-quick-reference.md @@ -7,11 +7,6 @@ ![Category: Patch & Diff](https://img.shields.io/badge/Category-Patch%20%26%20Diff-blue) -#### Tags -`patch`, `diff`, `reference` +--- -#### Author -mike-rambil - -#### Last Updated -2024-06-10 +_Author: mike-rambil • Updated: 2024-06-10 • Tags: patch, diff, reference_ diff --git a/contents/pull-changes-of-specific-files-from-a-commit.md b/contents/pull-changes-of-specific-files-from-a-commit.md index 427e3c2..e18e5a3 100644 --- a/contents/pull-changes-of-specific-files-from-a-commit.md +++ b/contents/pull-changes-of-specific-files-from-a-commit.md @@ -47,11 +47,6 @@ git push origin revert/productionOrder - [Git Docs: git checkout](https://git-scm.com/docs/git-checkout) -#### Tags -`checkout`, `restore`, `file`, `commit`, `cherry-pick` +--- -#### Author -mike-rambil - -#### Last Updated -2024-06-10 +_Author: mike-rambil • Updated: 2024-06-10 • Tags: checkout, restore, file, commit, cherry-pick_ diff --git a/contents/remove-a-worktree.md b/contents/remove-a-worktree.md index 6a15ef3..3039108 100644 --- a/contents/remove-a-worktree.md +++ b/contents/remove-a-worktree.md @@ -29,13 +29,8 @@ git worktree remove ../feature-branch - ⚠️ Make sure you have committed all changes before removing a worktree. -#### Tags -`worktree`, `remove` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: Switch Between Worktrees](./switch-between-worktrees.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: worktree, remove_ diff --git a/contents/see-who-last-modified-each-line-blame.md b/contents/see-who-last-modified-each-line-blame.md index 09e32b7..dd76833 100644 --- a/contents/see-who-last-modified-each-line-blame.md +++ b/contents/see-who-last-modified-each-line-blame.md @@ -29,11 +29,6 @@ git blame filename.txt - ⚠️ Blame can be misleading if the file has been heavily refactored. -#### Tags -`blame`, `file`, `history` +--- -#### Author -mike-rambil - -#### Last Updated -2024-06-10 +_Author: mike-rambil • Updated: 2024-06-10 • Tags: blame, file, history_ diff --git a/contents/sharing-changes-as-patch-files.md b/contents/sharing-changes-as-patch-files.md index 2230a8e..8aec20c 100644 --- a/contents/sharing-changes-as-patch-files.md +++ b/contents/sharing-changes-as-patch-files.md @@ -9,15 +9,6 @@ How to create patch files from your changes for sharing via email, SCP, Slack, or other means. Covers both committed (with full commit metadata) and uncommitted changes. -#### Tags -`patch`, `diff`, `sharing`, `email`, `collaboration` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - --- ### Subcommands @@ -172,3 +163,7 @@ mike-rambil #### Last Updated 2024-06-10 + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: patch, diff, sharing, email, collaboration_ diff --git a/contents/show-commit-history-of-a-specific-file.md b/contents/show-commit-history-of-a-specific-file.md index d9dd6c2..134ef6b 100644 --- a/contents/show-commit-history-of-a-specific-file.md +++ b/contents/show-commit-history-of-a-specific-file.md @@ -23,18 +23,13 @@ git log --oneline -- filename.txt 1. Lists all commits that modified `filename.txt`. -#### Tags -`log`, `file`, `history` - #### Related Commands - git log -p -- filename.txt - git blame filename.txt -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: Show Detailed Commit History (With Changes)](./show-detailed-commit-history-with-changes.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: log, file, history_ diff --git a/contents/show-commit-history-with-author-and-date.md b/contents/show-commit-history-with-author-and-date.md index 5e2a547..8e2ffeb 100644 --- a/contents/show-commit-history-with-author-and-date.md +++ b/contents/show-commit-history-with-author-and-date.md @@ -25,13 +25,8 @@ git log --pretty=format:"%h - %an, %ar : %s" -- filename.txt 1. Displays commit hash, author, relative date, and commit message. -#### Tags -`log`, `author`, `date` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: See Who Last Modified Each Line (Blame)](./see-who-last-modified-each-line-blame.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: log, author, date_ diff --git a/contents/show-detailed-commit-history-with-changes.md b/contents/show-detailed-commit-history-with-changes.md index a80706b..987b31f 100644 --- a/contents/show-detailed-commit-history-with-changes.md +++ b/contents/show-detailed-commit-history-with-changes.md @@ -25,17 +25,12 @@ git log -p -- filename.txt 1. Shows each commit and the actual changes made to `filename.txt`. -#### Tags -`log`, `diff`, `file` - #### Related Commands - git log --oneline -- filename.txt -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: Show Commit History With Author and Date](./show-commit-history-with-author-and-date.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: log, diff, file_ diff --git a/contents/switch-between-worktrees.md b/contents/switch-between-worktrees.md index 648add3..4a674ed 100644 --- a/contents/switch-between-worktrees.md +++ b/contents/switch-between-worktrees.md @@ -23,13 +23,8 @@ cd ../feature-branch 1. Simply cd into the worktree directory to switch. -#### Tags -`worktree`, `switch` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: Use Worktrees for Temporary Fixes](./use-worktrees-for-temporary-fixes.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: worktree, switch_ diff --git a/contents/use-worktrees-for-temporary-fixes.md b/contents/use-worktrees-for-temporary-fixes.md index 1935fce..d82d379 100644 --- a/contents/use-worktrees-for-temporary-fixes.md +++ b/contents/use-worktrees-for-temporary-fixes.md @@ -25,13 +25,8 @@ git worktree add ../hotfix hotfix-branch 1. Quickly apply a fix on another branch without leaving your main branch. -#### Tags -`worktree`, `hotfix` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: Flags and Their Uses](./flags-and-their-uses.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: worktree, hotfix_ diff --git a/contents/useful-rare-git-commands-you-never-heard-of.md b/contents/useful-rare-git-commands-you-never-heard-of.md index b4eaa61..cefb8ce 100644 --- a/contents/useful-rare-git-commands-you-never-heard-of.md +++ b/contents/useful-rare-git-commands-you-never-heard-of.md @@ -9,15 +9,6 @@ A collection of lesser-known but powerful Git commands. Use these to level up your Git workflow! -#### Tags -`rare`, `advanced`, `tips` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - --- ### Subcommands @@ -51,3 +42,7 @@ mike-rambil #### Last Updated 2024-06-10 + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: rare, advanced, tips_ diff --git a/contents/view-and-clean-up-local-git-branches-bash.md b/contents/view-and-clean-up-local-git-branches-bash.md index 4729e3a..ce57998 100644 --- a/contents/view-and-clean-up-local-git-branches-bash.md +++ b/contents/view-and-clean-up-local-git-branches-bash.md @@ -35,13 +35,8 @@ git branch -vv | grep -E '^\s*\S+\s+[^\[]+$' | awk '{print $1}' | xargs git bran - ⚠️ Deleting branches is irreversible. Double-check before running destructive commands. -#### Tags -`branches`, `cleanup`, `bash` - -#### Author -mike-rambil - -#### Last Updated -2024-06-10 - [➡️ See the Next Step: View and Clean Up Local Git Branches (PowerShell)](./view-and-clean-up-local-git-branches-powershell.md) + +--- + +_Author: mike-rambil • Updated: 2024-06-10 • Tags: branches, cleanup, bash_ diff --git a/contents/view-and-clean-up-local-git-branches-powershell.md b/contents/view-and-clean-up-local-git-branches-powershell.md index 3d45e50..47f46f7 100644 --- a/contents/view-and-clean-up-local-git-branches-powershell.md +++ b/contents/view-and-clean-up-local-git-branches-powershell.md @@ -35,11 +35,6 @@ git branch -vv | Select-String -NotMatch "origin/" | ForEach-Object { $branch = - ⚠️ Deleting branches is irreversible. Double-check before running destructive commands. -#### Tags -`branches`, `cleanup`, `powershell` +--- -#### Author -mike-rambil - -#### Last Updated -2024-06-10 +_Author: mike-rambil • Updated: 2024-06-10 • Tags: branches, cleanup, powershell_