git .git目录提交
One of my weaknesses as a developer is relying on UIs to provide me the data I need. It's not a fatal weakness but it does hamper me a bit. One prime example is relying on GitHub's interface to review changes; git's command line provides the information needed with commands but the UI is just so much nicer.
作为开发人员,我的弱点之一是依靠UI向我提供所需的数据。 这不是致命的弱点,但确实妨碍了我。 一个主要的例子是依靠GitHub的界面来查看更改; git的命令行提供了命令所需的信息,但是UI更好。
I recently needed to trace back commits to find a problematic commit between a given date range. You can use the following git command to list commits between two dates:
我最近需要追溯提交,以找到给定日期范围之间的问题提交。 您可以使用以下git命令列出两个日期之间的提交:
$ git log --after="2018-06-30" --before="2018-07-03" --oneline
636c0ff21 Add recordTelemetryEvent() helper to debugger util fixes #6529 (#6571)
94d5e0639 [Telemetry] Fixed telemetry import to point at devtools module using transform-mc.js (#6567)
990c52150 [Editor] get mode from editor (#6563)
2f990aa0e [flow] add types for Editor/index (#6568)
7f92836ba When replaying, fix resume button bug and show pause button when unpaused. (#6582)
1840902f9 [Breakpoint] use PureComponent (#6583)
Especially nice is the --oneline
modifier to keep the commit list concise.
--oneline
修饰符特别好,以确保提交列表简洁明了。
I'd guess that 90% of git developers simply branch, commit, and push -- not that there's anything wrong with that, but it's only about 2% of what git is capable of. Using native tools and not UIs is a badge of honor in our business, so mastering the lessor known commands can speed up development and make you less reliant on outside apps!
我猜想90%的git开发人员只是分支,提交和推入-并不是说有什么问题,但仅占git功能的2%左右。 在我们的业务中,使用本机工具而不是UI是我们的荣幸,因此,掌握众所周知的命令可以加快开发速度,并减少对外部应用程序的依赖!
git .git目录提交