TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Git v2.3 Release Notes

66 pointsby markthethomasover 10 years ago

1 comment

rspeerover 10 years ago
<p><pre><code> * &quot;git push&quot; into a repository with a working tree normally refuses to modify the branch that is checked out. The command learned to optionally do an equivalent of &quot;git reset --hard&quot; only when there is no change to the working tree and the index instead, which would be useful to &quot;deploy&quot; by pushing into a repository. </code></pre> Nice! This sounds like something that I expected Git to do since the first time I used it, which means that I ran straight into the unfriendly error messages that result from pushing to a checked-out repository.<p>Using hooks for simple deployments has always seemed clumsy compared to the thing that I originally imagined Git could do. I&#x27;m glad to hear that Git now supports this use case.
评论 #9010846 未加载
评论 #9011236 未加载