Imagine that I have in the master branch a commit of a texte.txt
file. So I create a branch called teste2
, I checkout it and create a file called teste2.txt
, but I do not commit it.
If I give git checkout master
and check git status
, it considers the changes (in this case the creation of teste2.txt
) as belonging to the master branch, even though I made those changes when it was in the teste2
branch %.
Is there a way to keep these changes in branch teste2
without having to commit? Because I may not want to commit, if I have not yet completed what I'm implementing.