Replies: 4 comments 7 replies
-
|
The "Remote branches are no longer supported" point might cause some confusion. For example, trying to set up git-branchless without a local main branch might result in some confusing messages if the user doesn't realise that the main branch needs to be local: Currently, there is no documentation (inside |
Beta Was this translation helpful? Give feedback.
-
|
Sapling uses |
Beta Was this translation helpful? Give feedback.
-
|
I was a heavy user of remote branches in all my repositories (as recommended by the git-branchless documentation at the time), and I've been struggling the last week to adapt to them being removed. I've broken repositories a few times in the past few days, and I feel like I no longer have a correct mental map of how you intend git-branchless to be used. In my workflow I make a change, push a ref for review, and then being on another change (sometimes moving around with Now I seem to get in situations where I'd loved to see the "stashing" workflow documented, as well as documentation of git-branchless being used for real. |
Beta Was this translation helpful? Give feedback.
-
|
Late to the party. So, I just upgraded to current, and I do a lot of work locally on master (or main). I was previously using "origin/master" (or "origin/main") so that when I type "git sl" then I could see which commits were local and which had been pushed to remote. That seems to not work anymore? How can I see which commits are local and haven't been pushed remotely? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The following branches have been made in the latest
master:git cotogit sw#577.git branchless checkoutcommand has been renamed togit branchless switch, and the defaultgit coalias has been changed togit sw. You are of course free to maintain your own aliases.git branchless switchcan accept a commit hash (or revset, etc.) rather than only a branch name.git recordwith the-d/--detachoption. (We could have made it work the other way, wheregit recorddoesn't update the current branch unless you explicitly pass a certain flag, but this way is more harmonious with existing Git tooling.)branchless.navigation.autoSwitchBranches. I would be curious to know if you prefer the old workflow. It might be interesting to inform the design of Jujutsu, where I've proposed not having a current branch at all.origin/masteras your main branch, you'll need to create a localmainbranch and use that instead. Then usegit sync --pullto keep it up to date with the remote main branch.Beta Was this translation helpful? Give feedback.
All reactions