Skip to content

Commit bc3b799

Browse files
committed
Any git alias is converted to lower case before processing, so both br and bR were in fact a single alias (br). Let's use brr instead of bR then.
1 parent 76ae9dc commit bc3b799

File tree

3 files changed

+29
-29
lines changed

3 files changed

+29
-29
lines changed

docs/cheat-sheet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ hug bcp feat-1 backup-feat # Explicit name for the copy
4646

4747
# Switch to existing (interactive menu)
4848
hug b # **B**ranch
49-
hug br # **B**ranch **R**emote (interactive menu of remotes only)
50-
hug bR # **B**ranch **R**efreshed remotes (fetch first, then remote menu)
49+
hug br # **B**ranch **R**emotes (interactive menu of remotes only)
50+
hug brr # **B**ranch **R**efreshed **R**emotes (fetch first, then remote menu)
5151

5252
# Merge (squash, no commit)
5353
hug m feature-branch # **M**erge

docs/commands/branching.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@ These commands are implemented as Git aliases and scripts in the Hug tool suite,
66

77
## Quick Reference
88

9-
| Command | Memory Hook | Summary |
10-
| --- | --- | --- |
11-
| `hug b` | **B**ranch checkout | Switch to an existing branch or pick interactively |
12-
| `hug br` | **B**ranch **R**emote | Alias for `hug b -r`: Interactive menu of remote branches only; create tracking on select |
13-
| `hug bR` | **B**ranch **R**efresh remotes | Alias for `hug b -R`: As above, but fetch/prune remotes first |
14-
| `hug bl` | **B**ranch **L**ist | List local branches |
15-
| `hug bla` | **B**ranch **L**ist **A**ll | List local and remote branches |
16-
| `hug blr` | **B**ranch **L**ist **R**emote | List remote branches only |
17-
| `hug bll` | **B**ranch **L**ist **L**ong | Detailed local branch list with tracking info |
18-
| `hug bcp <source> [dest]` | **B**ranch **CP** (copy) | Create a copy of a branch or commitish without switching; auto-names if unspecified |
19-
| `hug bc` | **B**ranch **C**reate | Create a new branch and switch to it |
20-
| `hug bc --no-switch` | **B**ranch **C**reate **no-switch** | Create a new branch without switching to it |
21-
| `hug bmv` | **B**ranch **MV** (move) | Rename the current branch |
22-
| `hug brestore` | **B**ranch **RESTORE** | Restore a branch from a backup |
23-
| `hug bdel` | **B**ranch **DEL**ete | Delete branches interactively or by name |
24-
| `hug bdel-backup` | **B**ranch **DEL**ete **BACKUP** | Delete backup branches with filters |
25-
| `hug bdelf` | **B**ranch **DEL**ete **F**orce | Force-delete local branch |
26-
| `hug bdelr` | **B**ranch **DEL**ete **R**emote | Delete remote branch |
27-
| `hug bpull` | **B**ranch **Pull** | Safe fast-forward pull (fails if merge/rebase needed) |
28-
| `hug bpullr` | **B**ranch **Pull** **R**ebase | Pull with rebase (linear history) |
29-
| `hug bwc` | **B**ranch **W**hich **C**ontain | Branches containing a commit |
30-
| `hug bwp` | **B**ranch **W**hich **P**oint | Branches pointing at an object |
31-
| `hug bwnc` | **B**ranch **W**hich **N**ot **C**ontain | Branches missing a commit |
32-
| `hug bwm` | **B**ranch **W**hich **M**erged | Branches merged into a commit |
33-
| `hug bwnm` | **B**ranch **W**hich **N**ot **M**erged | Branches not merged into a commit |
9+
| Command | Memory Hook | Summary |
10+
|---------------------------|------------------------------------------| --- |
11+
| `hug b` | **B**ranch checkout | Switch to an existing branch or pick interactively |
12+
| `hug br` | **B**ranch **R**emotes | Alias for `hug b -r`: Interactive menu of remote branches only; create tracking on select |
13+
| `hug brr` | **B**ranch **R**efreshed **R**emotes | Alias for `hug b -R`: As above, but fetch/prune remotes first |
14+
| `hug bl` | **B**ranch **L**ist | List local branches |
15+
| `hug bla` | **B**ranch **L**ist **A**ll | List local and remote branches |
16+
| `hug blr` | **B**ranch **L**ist **R**emote | List remote branches only |
17+
| `hug bll` | **B**ranch **L**ist **L**ong | Detailed local branch list with tracking info |
18+
| `hug bcp <source> [dest]` | **B**ranch **CP** (copy) | Create a copy of a branch or commitish without switching; auto-names if unspecified |
19+
| `hug bc` | **B**ranch **C**reate | Create a new branch and switch to it |
20+
| `hug bc --no-switch` | **B**ranch **C**reate **no-switch** | Create a new branch without switching to it |
21+
| `hug bmv` | **B**ranch **MV** (move) | Rename the current branch |
22+
| `hug brestore` | **B**ranch **RESTORE** | Restore a branch from a backup |
23+
| `hug bdel` | **B**ranch **DEL**ete | Delete branches interactively or by name |
24+
| `hug bdel-backup` | **B**ranch **DEL**ete **BACKUP** | Delete backup branches with filters |
25+
| `hug bdelf` | **B**ranch **DEL**ete **F**orce | Force-delete local branch |
26+
| `hug bdelr` | **B**ranch **DEL**ete **R**emote | Delete remote branch |
27+
| `hug bpull` | **B**ranch **Pull** | Safe fast-forward pull (fails if merge/rebase needed) |
28+
| `hug bpullr` | **B**ranch **Pull** **R**ebase | Pull with rebase (linear history) |
29+
| `hug bwc` | **B**ranch **W**hich **C**ontain | Branches containing a commit |
30+
| `hug bwp` | **B**ranch **W**hich **P**oint | Branches pointing at an object |
31+
| `hug bwnc` | **B**ranch **W**hich **N**ot **C**ontain | Branches missing a commit |
32+
| `hug bwm` | **B**ranch **W**hich **M**erged | Branches merged into a commit |
33+
| `hug bwnm` | **B**ranch **W**hich **N**ot **M**erged | Branches not merged into a commit |
3434

3535
## Listing Branches
3636

@@ -41,7 +41,7 @@ These commands are implemented as Git aliases and scripts in the Hug tool suite,
4141
- `-R, --refresh`: Like `--remote`, but first fetches branch data from the remote to ensure up-to-date information. Ideal before switching in shared repos; if fetch fails (e.g., network issues), it warns and uses cached data.
4242
- **Aliases**:
4343
- `hug br`: Equivalent to `hug b -r` (remote branches menu).
44-
- `hug bR`: Equivalent to `hug b -R` (refreshed remote branches menu).
44+
- `hug brr`: Equivalent to `hug b -R` (refreshed remote branches menu).
4545

4646
- **Interactive Selection Behavior**: The menu lists branches as: *branch-name* (*short-hash*) [upstream info, e.g., ahead/behind counts], followed by the commit subject line. The current branch is highlighted in green with an asterisk (*). By default, shows local branches. With `-r` or `-R`, shows remotes only (with remote prefix in cyan brackets, e.g., [origin/main]). For repos with 10+ branches, leverages `gum filter` (install via [charmbracelet/gum](https://github.com/charmbracelet/gum)) for searchable, multi-select filtering. Otherwise, falls back to a simple numbered list for quick picks.
4747
- **Interactive Selection Behavior**: The menu lists branches as: *branch-name* (*short-hash*) [upstream info, e.g., ahead/behind counts], followed by the commit subject line. The current branch is highlighted in green with an asterisk (*). By default, shows local branches. With `-r` or `-R`, shows remotes only (with remote prefix in cyan brackets, e.g., [origin/main]). For repos with 10+ branches, leverages `gum filter` (install via [charmbracelet/gum](https://github.com/charmbracelet/gum)) for searchable, multi-select filtering. Otherwise, falls back to a simple numbered list for quick picks.

git-config/.gitconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@
367367
br = b -r
368368

369369
# Fetch, then switch to remote branch
370-
bR = b -R
370+
brr = b -R
371371

372372
# Go back to previous branch (like 'cd -')
373373
# Usage: hug bs

0 commit comments

Comments
 (0)