You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a new command, default or main, would be beneficial to the gitnow tool that allows users to quickly switch back to the main or master branch of their repository. This command would streamline the workflow for users who frequently switch between feature branches and the main branch.
Suggested Implementation
The new command should:
Detect the default branch name (either main or master).
Switch to the detected default branch.
Example Usage
Command:
default
or:
main
Instead of:
git checkout main
# or
git checkout master
This feature would enhance the usability of gitnow by providing a quick and intuitive way to switch back to the main branch, aligning with common git workflows.
The text was updated successfully, but these errors were encountered:
It is no bad idea. But for now, I think move can achieve this in some form via move master with the possibility to go back using move - and since move has completions, it should reduce typing. See #50
Introduction
Adding a new command,
default
ormain
, would be beneficial to thegitnow
tool that allows users to quickly switch back to the main or master branch of their repository. This command would streamline the workflow for users who frequently switch between feature branches and the main branch.Suggested Implementation
The new command should:
main
ormaster
).Example Usage
Command:
or:
Instead of:
git checkout main # or git checkout master
This feature would enhance the usability of
gitnow
by providing a quick and intuitive way to switch back to the main branch, aligning with common git workflows.The text was updated successfully, but these errors were encountered: