git stash

#Knowledge #coding

git stash stores tracked file changes in a local heap
helpful in testing flows for branches or even different configurations

Commands

git stash push -m "[message]" // store local changes for testing that block git pulling
git stash list // lists stashes available, each with message
git stash apply // applies most recent stash
git stash apply stash@{#} // applies stash with # as the number listed

Powered by Forestry.md