DEV Community

Arthur V. M. Dantas
Arthur V. M. Dantas

Posted on • Updated on

#1 - Journal: 03/12/2020

Today I was working on one of my side projects and needed to move some changes to another branch of the repository. A perfect time to use the git stash command for the first time, right?

I'm still trying to get comfortable using git - I'm using CLI for now in order to fully understand what is going on - so I started reading this documentation from Atlassian. But one thing that was not quite there was how to stash a single file. Turns out it's pretty simple: git stash push -m "message..." file1 file2 ...

Top comments (0)