On Thu, Jan 30, 2025 at 02:18:06AM +0000, brian m. carlson wrote:
[...]
It's also possible to use one name locally and push to another, such as with
`git push origin my-feature:refs/features/foo`.
I would add that I, for one, have a habit of working on a detached HEAD and
then pushing the results with
git push HEAD:refs/heads/whatever
and only creating a local branch when I think I'm going to abandon the current
work for too long (otherwise I just inspect the output of `git reflog HEAD`
to find the place where I left off and then check it out back).
I don't think it's a widely adopted approach to work with Git, so mentioning
it more for the purpose of widening the OP's view of the subject matter.
[...]