git switch master
git switch -c feature1
// either commit or stash changes
// If I want to commit changes later but need to work on feature2.
git stash
git stash show
git stash list
git stash apply // to get the stash changes back
git stash clear // danger, it clears the stash (all work gone)
git switch -c feature2
// now you can either commit or stash changes like you did for feature1.
Created
June 13, 2021 15:16
-
-
Save Rohitesh-Kumar-Jain/54e9f93bb6fad32ea2385016d1e2858d to your computer and use it in GitHub Desktop.
Github Work Flow for woking on two features simultaneously
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment