tags:

views:

393

answers:

2

How can you put uncommitted changes to a branch TEST when I am at the branch master?

+1  A: 
git checkout TEST
git add file1 file2
git commit
Bombe
+4  A: 

You can just checkout to the test branch and then commit. You don't lose your uncommited changes when moving to another branch.

Supposing your at the master branch

git checkout test
git add .
git add deletedFile1
git add deletedFile2
...
git commit -m "My Custom Message"

Not really sure about the deleted files. But I guess they aren't included when you use "git add ."

Samuel Carrijo