Used GIT commands

Generate pathes from git repository
git format-patch origin/master

Get a the remote branch gnome-2-28
git checkout --track origin/gnome-2-28

Commit on a branch the last commit done on master
git cherry-pick master

Remove changes in the index, do not change local file
git reset

Remove changes in local file to match index
git reset --hard
Warning, uncommitted changes are not in any branch. So removing them with the previous command will remove them in all branch.