Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to push changes to github branch #3122

Closed
worksamp opened this issue Nov 18, 2016 · 5 comments
Closed

Need to push changes to github branch #3122

worksamp opened this issue Nov 18, 2016 · 5 comments
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.

Comments

@worksamp
Copy link

I have 1 github repo and have multiple branches.
I am able to push changes to github master repo but now i need to push changes to any 1 branch.
can anyone please tell me how to puch changes to github branch?

@TylerJewell TylerJewell added the kind/question Questions that haven't been identified as being feature requests or bugs. label Nov 18, 2016
@TylerJewell
Copy link

If on the command line or in the GUI, did you "git checkout "? And when you do this, you can then push back to your origin the changes to this branch.

@shadowcodex
Copy link

Try this:

$> git checkout master
$> git push origin branchname # assuming branch is created

For more information on branching take a look at this book, chapter 3. https://git-scm.com/book/en/v2

@nipobhsnro
Copy link

in eclipse che-->git-->remotes
I am adding Name= origin & location=github ssh url for main repo

So for branch what will be the url?

@nipobhsnro
Copy link

@TylerJewell & @shadowcodex 👍
Thank you so much..by using $git push origin branchname i am able to push code to branch

@shadowcodex
Copy link

@nipobhsnro glad to hear it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions that haven't been identified as being feature requests or bugs.
Projects
None yet
Development

No branches or pull requests

4 participants