2. Create 2 branches (dev & test), then create a file in each of them, then push them to remote repo
-
Locally
git branch -d dev git branch -d test
-
Remotely
git push origin :dev git push origin :test
-
If there are changes in the working copy that aren't commited and trying to switch branch
git
will complain with an error that these edits will get deleted if branch is switched you will have to either delete the edits or commit it first -
Another solution is to
stach
the uncommited changes and then switching the branch