logo rapid-git

Branching

rapid branch

By using rapid branch, you can display all local or remote branches prefixed with an index. Given this feature this command will be your reference, whenever you work with any other branching command like rapid checkout or rapid rebase. Furthermore you can also use it to delete or even force delete any existing branch by using a representative index as reference.

Available notations

rapid branch
display all local branches
rapid branch -r
display all remote branches
rapid branch -a
display all local and remote branches
rapid branch -d <indexes and ranges>
delete one or multiple branches
rapid branch -D <indexes and ranges>
force delete one or multiple branches

Command prompt example

    
      
        
    whoami
directory
master

± rapid branch
(1) bug-fix/ie8-horror
(2) development
(3) feature/video-player
(4) feature/music-player
> (5) master
(6) prototype/video-player

whoami directory master
± rapid branch -d 4
Deleted branch feature/music-player (was a8d46a0)

whoami directory master
± rapid branch
(1) bug-fix/ie8-horror
(2) development
(3) feature/video-player
> (4) master
(5) prototype/video-player

whoami directory master
±

rapid checkout

rapid checkout <index> allows you to checkout a branch by using an index instead of a branch name. The index is based on git branch and rapid branch.

Command prompt example

    
      
        
    whoami
directory
master

± rapid checkout 3
Switched to branch 'feature/video-player'

whoami directory feature/video-player
±

rapid merge

Use rapid merge <index> to incorporate changes from another branch into your current one by referencing the other branch via index. The index is based on git branch and rapid branch.

Command prompt example

    
      
        
    whoami
directory
master

± rapid merge 3
Updating a8d46a0..25310b3
Fast-forward
gallery | 37 +++++++++++++++++++++++++++++--------
video-player | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 102 insertions(+), 8 deletions(-)
create mode 100644 video-player

whoami directory master
±

rapid rebase

Utilize rapid rebase <index> to reapply the commits of your current branch on top of another branch by referencing the other branch via index. The index is based on git branch and rapid branch.

Available notations

rapid rebase <index>
rebase your current branch on top of another branch
rapid rebase -c
continue rebasing
rapid rebase -a
abort rebasing

Command prompt example

    
      
        
    whoami
directory
feature/video-player

± rapid rebase 4
First, rewinding head to replay your work on top of it...
Fast-forwarded feature/video-player to master

whoami directory feature/video-player
±

rapid push

Use this command to either push a local branch or to delete a remote branch by referencing the targeted branch via index. The index is based on git branch and rapid branch.

Available notations

rapid push <index>
push one branch to a remote repository
rapid push [git-push-options...] <index>
push with git push options, e.g. --delete to delete a remote branch

Command prompt example

    
      
        
    whoami
directory
feature/video-player

± rapid push 4
Counting objects: 45, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (33/33), done.
Writing objects: 100% (45/45), 3.98 KiB | 0 bytes/s, done.
Total 45 (delta 14), reused 0 (delta 0 )
To https://github.com/rapid-git/rapid-git.git
* [new branch] feature/video-player -> feature/video-player

whoami directory feature/video-player
±