git-ctx

Crates.iogit-ctx
lib.rsgit-ctx
version0.1.1
sourcesrc
created_at2022-02-28 19:32:57.815219
updated_at2022-03-08 20:48:03.991953
descriptionA git custom command to list and switch most recent branches
homepage
repository
max_upload_size
id541125
size14,711
Kevin J. Qiu (kevinjqiu)

documentation

README

          _ __             __      
   ____ _(_) /_      _____/ /__  __
  / __ `/ / __/_____/ ___/ __/ |/_/
 / /_/ / / /_/_____/ /__/ /__>  <  
 \__, /_/\__/      \___/\__/_/|_|  
/____/                             

Easily switch between recently used git branches

Usage

Drop the executable in any directory on your $PATH. Then:

git ctx

List recent branches:

git ctx list-branches  # or git ctx l

e.g.,

> git ctx l
[*] new-branch
    master
    old-branch-1
    old-branch-2

Switch branches:

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'
Commit count: 0

cargo fmt