Consider the following, I have two branches on github: master and dev. I have a local repository that's a clone of and is pointing to the remote master but I'd like to switch it to the dev branch so that any changes I make will be committed to dev instead of master. What steps would be required to do that? I've tried multiple ways, but they never seem to work and it always commits to master. Please explain simply as I'm still new to Git and libgit2sharp so I'm still trying to wrap my head around it.
Edit: I'm using the libgit2sharp library to issue the git commands, not the Git shell