TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

GitButler now supports first class conflicts, making rebasing less annoying

109 点作者 hemogloben7 个月前

11 条评论

imiric7 个月前
I have yet to try Jujutsu or GitButler, but Git has a built-in way to make conflict resolution a bit easier with `rerere`. To be honest, I don&#x27;t find doing this work manually a major chore, so I don&#x27;t enable it, but it&#x27;s there if you need it.<p>I would like to comment on this:<p>&gt; I have been asked countless times if it&#x27;s better to merge or to rebase and while I never want to stir up a hornet&#x27;s nest, I have always advocated merging over rebasing.<p>I&#x27;ve been involved in this discussion many times as well, and the correct answer is that one isn&#x27;t inherently &quot;better&quot;, and you shouldn&#x27;t _always_ prefer one over the other. There are situations when a merge is preferable (e.g. to keep a branch in history), and others when a rebase is (e.g. to, well, _base_ some work on a specific commit). The choice of when to use either will depend on the author&#x27;s or team&#x27;s preference in each case, which is why it&#x27;s given as an option in most web-based PR&#x2F;MR workflows. Squashing is another task you don&#x27;t want to always do either.<p>I partly blame this confusion on Git&#x27;s UI, and on the baseless fears spread about rebasing for years, which many developers mistakenly absorbed. The amount of times I&#x27;ve heard that force-pushing after a rebase is &quot;dangerous&quot; is too high. No wonder people find it scary...
评论 #41931040 未加载
评论 #41929506 未加载
评论 #41941316 未加载
epolanski7 个月前
Serious question: how many times the pain of going through rebases rather than merges made a difference, or even better, really paid off in engineering terms?<p>To me it&#x27;s virtually zero in seven years but it might be due to the teams and projects I&#x27;ve been involved with.
评论 #41929626 未加载
评论 #41929457 未加载
评论 #41930430 未加载
评论 #41929468 未加载
评论 #41929529 未加载
评论 #41931444 未加载
评论 #41929423 未加载
评论 #41930901 未加载
评论 #41944518 未加载
评论 #41930499 未加载
dimal7 个月前
Off topic but why do product blogs always exist on a separate domain, with no link to the product website? I never heard of GitButler. Reading this is making me curious about it. But the home link in the top left goes to the blog home. If I want to actually see the product, I have to manually edit the url, on my iPad. Why does everyone do this? Seems obvious to have a link to the main site. &#x2F;rant
评论 #41930531 未加载
mplanchard7 个月前
Configuring rerere makes a huge difference in overall rebase experience. The following is a standard addition to my gitconfig<p><pre><code> [rerere] enabled = true autoupdate = true</code></pre>
评论 #41929797 未加载
ibejoeb7 个月前
A talk about gitbutler on the devtools-fm podcast: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=I-D6zChu3YI" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=I-D6zChu3YI</a>
eviks7 个月前
At least one example of a conflicted hunk and what exactly gets saved would be more useful than a full screen screenshot just to show a single &quot;conflicted&quot; button in the UI
johnea7 个月前
With syslog, everything in git is &quot;fearless&quot;
评论 #41929117 未加载
评论 #41929164 未加载
评论 #41929536 未加载
评论 #41929290 未加载
User237 个月前
As an aside you can avoid the vast majority of unnecessary rebase tedium with proper use of<p><pre><code> git rebase —onto</code></pre>
mdaniel7 个月前
cute: <a href="https:&#x2F;&#x2F;github.com&#x2F;gitbutlerapp&#x2F;gitbutler&#x2F;blob&#x2F;v0.10.0&#x2F;LICENSE.md#functional-source-license-version-10-mit-change-license">https:&#x2F;&#x2F;github.com&#x2F;gitbutlerapp&#x2F;gitbutler&#x2F;blob&#x2F;v0.10.0&#x2F;LICEN...</a>
评论 #41930750 未加载
hemogloben7 个月前
I was looking forward to trying this out, unfortunately Tauri dropped support for Ubuntu 20.04, and thus GitButler did as well: <a href="https:&#x2F;&#x2F;github.com&#x2F;gitbutlerapp&#x2F;gitbutler&#x2F;issues&#x2F;4881">https:&#x2F;&#x2F;github.com&#x2F;gitbutlerapp&#x2F;gitbutler&#x2F;issues&#x2F;4881</a>
评论 #41929360 未加载
chx7 个月前
I must admit I usually immediately disregard any fancy new git tools, they come and go and often don&#x27;t work right and create a gigantic mess.<p>But... have you seen who wrote this article?<p>Scott Chacon. If there&#x27;s anyone in this world whose article would make me try a new git tool, it&#x27;s him. He wrote the Pro Git book, Git Internals. Oh and cofounded GitHub. This is not argument from authority fallacy. This is &quot;hey! this guy knows git like very very few others, it&#x27;s worth listening to what he has to say&quot;.
评论 #41932659 未加载
评论 #41964401 未加载
评论 #41931090 未加载
评论 #41936584 未加载