Crates.io | git-ctx |
lib.rs | git-ctx |
version | 0.1.1 |
source | src |
created_at | 2022-02-28 19:32:57.815219 |
updated_at | 2022-03-08 20:48:03.991953 |
description | A git custom command to list and switch most recent branches |
homepage | |
repository | |
max_upload_size | |
id | 541125 |
size | 14,711 |
_ __ __
____ _(_) /_ _____/ /__ __
/ __ `/ / __/_____/ ___/ __/ |/_/
/ /_/ / / /_/_____/ /__/ /__> <
\__, /_/\__/ \___/\__/_/|_|
/____/
Easily switch between recently used git branches
Drop the executable in any directory on your $PATH
. Then:
git ctx
git ctx list-branches # or git ctx l
e.g.,
> git ctx l
[*] new-branch
master
old-branch-1
old-branch-2
git ctx switch-branch # or git ctx s
e.g.,
> git ctx s
[0] -->new-branch<--
[1] master
[2] old-branch-1
[3] old-branch-2
---------------------
Enter the branch number you want to switch to:
2
Your branch is up to date with 'origin/old-branch-1'.
Previous HEAD position was ...
Switched to branch 'old-branch-1'