M
M
My joy2017-07-31 18:48:28
git
My joy, 2017-07-31 18:48:28

Git - how to push a branch to a remote server?

Good afternoon comrade friends. I'm still a git nerd. I have a repo in bitbucket, there is one master branch.
I cloned it to the locale:
git clone https://bitbucket.org/tihoho/myrepo.git
then I made a new branch:

git branch experimental && git checkout experimental

then I made changes in the file and after that:
git commit -a -m "changes in new branch"
how can I now throw this branch on bitbucket? If it was not there initially, and it appeared on the locale. I feel that initially it was necessary not to clone, but to do something differently, but as I said, I am a chaineg, and the manual did not help.
Hope you guys.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
Bob Hope, 2017-07-31
@t-alexashka

Hello. Trygit push -u origin experimental

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question