Git Tricks: Get the last checked out branch
Read OriginalThis article provides practical Git command-line tips. It explains how to use 'git checkout -' or 'git switch -' to toggle between the current and last branch. It also details a command to extract the last 5 uniquely checked-out branches from the reflog history, with a breakdown of how the grep and awk pipeline works.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser