This is a basic newbie question about Git and 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 Master and Develop branches and in order to test out native-base UI library, I created a new branch named NativeBase. I now want to merge the NativeBase branch back into Develop both locally and on GitHub.
Are the following the correct steps to do this?
- I make sure I'm on
Developbranch by issuinggit checkout developin my terminal - Then issuing
git merge nativebasewill merge theNativeBaseintoDevelop - I think the next step is to get the updated
DevelopontoGitHubby issuinggit 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 merge locally?