Skip to content

Instantly share code, notes, and snippets.

@Rohitesh-Kumar-Jain
Created June 13, 2021 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rohitesh-Kumar-Jain/54e9f93bb6fad32ea2385016d1e2858d to your computer and use it in GitHub Desktop.
Save Rohitesh-Kumar-Jain/54e9f93bb6fad32ea2385016d1e2858d to your computer and use it in GitHub Desktop.
Github Work Flow for woking on two features simultaneously

Working on two features simultaneously

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment