Thread (3 messages) 3 messages, 3 authors, 2025-01-30

Re: Feature idea: Git hook for pre-checkout

From: Konstantin Khomoutov <hidden>
Date: 2025-01-30 14:12:20

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.

[...]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help