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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Introducing the Revert Button

117 点作者 _pius将近 11 年前

6 条评论

benatkin将近 11 年前
I think it would be neat if GitHub detected and archived branches that are deleted or overwritten with force --push. I don&#x27;t know how feasible this is but it would make it more true that <i>when code is pushed to GitHub, it&#x27;s safe</i>.<p>Edit: what I have in mind is something like a Recycle Bin or Trash for deleted branches where you can restore a branch (with a different name, if needed) or delete it permanently. Not some esoteric git feature. I&#x27;d like if it were added to git (as an optional feature enabled in .git&#x2F;config), but I&#x27;d want it to work more like stash than a feature for searching for things that were left behind.
评论 #7940739 未加载
评论 #7940609 未加载
cpeterso将近 11 年前
I&#x27;d like to see a &quot;Squash pull request&quot; button to avoid merge commits, clean up messy pull requests with WIP commits and changes to address review feedback, and keep master bisectable at every commit.
评论 #7941111 未加载
评论 #7941402 未加载
tildedave将近 11 年前
This will be a huge help for teams of larger developers who use Github.<p>It&#x27;s really easy for a branch to &quot;look okay&quot; at the unit level (generally covered by the commit status API) and then completely fail at the integration level.<p>Enabling quick reverts of bad code encourages people to make the &quot;right fix&quot; rather than trying to hotfix issues in an integration environment (which blocks the rest of the team and prevents other features from going out).
artursapek将近 11 年前
Kind of ironic how Github continues to make it less necessary for developers to actually learn git.
评论 #7940547 未加载
评论 #7940513 未加载
评论 #7941808 未加载
alistairjcbrown将近 11 年前
This is an awesome feature - not one you&#x27;ll use every day, but one that&#x27;s very convenient when you&#x27;ve made an oops.
jonny_eh将近 11 年前
This is great! But why is it only for PRs? Why not any arbitrary commit?
评论 #7941254 未加载