Jeff King <peff@peff.net> writes:Yeah, -f using "matching refs" is dangerous, but on the other hand, that would be how you correct that mistake in one shot, after you fixed the mistake locally. Is there anything wrong with "git push $there $branch_name"? I thought we discussed this last time and there was even a patch that does "git push $there HEAD" to push out the current branch, which I am fairly sure that I accepted (but I do not remember, as I do not use such a shorthand. When I want to push a single branch, I _want_ to be explicit, to make sure I push out the right thing). So after doing a fix on a single branch, you would: $ git push origin HEAD and you are done. No need to spell out the long branch name you are currently on. I do not know if this was part of the last round of patches, but I suspect it is not a problem to allow $ git push HEAD if it is unambiguous. That is, "HEAD? Do we have such a remote nickname? No. Then can we default to 'origin' and use it as the ref to push? Yeah, we can, so the user meant 'git push origin HEAD'". - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Hiten Pandya | Re: up? (emacs docbook xml ide) |
| Andy Whitcroft | clam |
| Kamalesh Babulal | Re: 2.6.23-rc6-mm1 |
git: | |
| Stephen Hemminger | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
| David Miller | [GIT]: Networking |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
