We regularly move between git branches while working on projects. I always used to type in the full branch name, say to go back to develop
branch and then come back to the feature branch. This generally takes a lot of typing (for the branch names etc.). I found out that we can use -
like in the way we use cd -
to go back to the previous directory we were in.
git checkout -
Here is a small video for demonstration.
I hope this will be useful for some people.
from Planet Python
via read more
No comments:
Post a Comment