Git: Can I commit my working directory to a new branch without commiting it to a current branch?

Posted by Noli on Stack Overflow See other posts from Stack Overflow or by Noli
Published on 2010-03-22T01:33:26Z Indexed on 2010/03/22 1:41 UTC
Read the original article Hit count: 374

Filed under:
|
|

Somewhat new at Git..

I am working on a project, and had all of my tests passing on the master branch. I then made some changes, and when everything started failing, I realized that maybe I should have made those changes in a different branch. Is there I way I can commit the changes to a new branch without commiting them to my master branch, so that the master still has my passing tests?

© Stack Overflow or respective owner

Related posts about git

Related posts about commit