Created
September 20, 2024 01:15
-
-
Save cvrajeesh/569985d53d36f2d07dd9b8660b13b771 to your computer and use it in GitHub Desktop.
Bash script to navigate between commits in git repo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Git Nav script
A helper script for navigating between commits in a Git branch.
While this may not be useful for everyday tasks, it can be helpful for demonstrating the progress of your feature or implementation. I use this during training sessions, where each commit contains the code implementation of the topic I want to discuss.
Usage
git-nav.sh init
from the repository to initialize the script.git-nav.sh prev
to navigate to the previous commit.git-nav.sh next
to navigate to the next commit.Alias