Is there a way to rewrite repository directory files to current branch state in GitHub Desktop?
Or can I only do it from command line with git checkout mybranch
and does GitHub Desktop keep all files of all branches in directory?
I will describe how to checkout on GitHub Desktop, which is equivalent to merging you current branch with the master branch. There are four steps you take(Branch names have been blanked out for privacy).
These steps assume that you have pulled all the changes on the master into your current branch to avoid any conflict. If there are issues try to ensure that the branch you are working on has been updated by changes in the Master.
To do git checkout mybranch
on Github Desktop, you simply click on the dropdown menu on the upper left hand corner of the client, and pick the branch you want to switch to. It manages files exactly like git does, so all files are stored in their respective branches.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With