I haven’t done much branching work in git and branching so excuse the noob nature of this.
I’m going to start working on a feature (say ‘user oauth’) that I want to work in isolation and merge in at a later point. Ideally, I will be merging this into the master branch at a later point. Obviously, I’d like to do in a separate branch. Is it general practice to just do a branch in my local instance or should I fork the repo and create a branch in the new separate folder structure. In my mind, the latter seems better in case I just want to wipe out the branch, I can just delete this other folder structure?
thx
edit 1 per ryan
git clone git@github.com:xxx/xxx.git
git branch test-feature-branch
edit 2
wow, thx for information. It’s possible that this will be a second application. Is there a way I can clone it and then essentially push it as a new repository to new github?
The whole point of git cloning and branches is that making separate repos is not necessary. A fork is really just another name for a clone and as such, you can make branches for multiple features at the same time within your local clone, picking and choosing which ones to push to the remote and/or merge into other branches (or discard).
See the answers to this question for more details: git branch, fork, fetch, merge, rebase and clone, what are the differences?