Skip to content

Instantly share code, notes, and snippets.

View theSoberSobber's full-sized avatar
🐢

Pavit Chhabra theSoberSobber

🐢
View GitHub Profile
@theSoberSobber
theSoberSobber / step.sh
Last active December 3, 2022 13:17
to step through a gh repo and study it's evolution
# include in sys varaibles to use everywhere
#!/bin/bash
echo "Enter branch name : "
read bname
chlist=$(git rev-list $bname --reverse)
tcnt=$(git rev-list $bname --count)
declare -i cnt=0
for ch in $chlist
do
# temp=$(git stash) # remove the comment hash only when you want to stash any changes you make along the way