I have one branch master on the server (remote). I created new local branch that doesn’t exist on the remote (server). How can I add (push) the branch to the remote (server) without merging it with the master branch
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Usually your remote will be origin, and both local and remote branch will be the same (although you can push local branch as a remote with different name). If their names are identical you don’t have to provide colon-separated names — one will be sufficient.
What you are trying to achieve has nothing to do with merging branches. I’d suggest further reading about branches and remotes (git-scm book is pretty good resource).