I am trying to do a Rails 3 upgrade.
So what I did is a created a branch -b rails-3
I've been working in that branch
I want to push it into a remote repository (just in case something goes down on my local machine)
How do I do that?
If I do git push it says everything is up to date....
git push origin HEAD:refs/heads/branch-name
should do the trick. It will create a branch called branch-name
on the origin
repository and copy your HEAD
to it.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.