This is a basic newbie question about
GitHub. I just want to make sure I'm doing it right.
I have a local
Git as well as a
GitHub repo for my
ReactNative project. I have
Develop branches and in order to test out
native-base UI library, I created a new branch named
NativeBase. I now want to
NativeBase branch back into
Develop both locally and on GitHub.
- I make sure I'm on
Developbranch by issuing
git checkout developin my terminal
- Then issuing
git merge nativebasewill merge the
- I think the next step is to get the updated
git push -u origin develop
One thing I'm not clear about is what happens to the
NativeBase branch on
GitHub. I think Step 2 here will remove the
NativeBase branch locally because it's now merged into
Develop. Is that correct?
Also, is this how I need to update/merge
GitHub repos after a
This is not true although all the info and history of the branch are now in the
Developbranch. You have to delete the NativeBase branch.
-dis safe and recommended because it will make sure that all the commits from
NativeBaseare moved to the
Developbranch before deletion.