博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
git 获取某个分支_获取Git分支在某个日期签出
阅读量:2520 次
发布时间:2019-05-11

本文共 957 字,大约阅读时间需要 3 分钟。

git 获取某个分支

I don't use any type of git UI -- I try to be hardcore and stick to the command line.  This makes git usage quicker but I also probably miss out on a lot of the functionality that would be nice to know.  The functionality is there, of course, but without a nice icon or menu item you don't really think about it.

我不使用任何类型的git UI-我尽量保持顽固并坚持命令行。 这使得git的使用更快,但是我可能也错过了很多很高兴知道的功能。 当然有功能,但是没有漂亮的图标或菜单项,您根本不会考虑它。

I was browsing CommandLineFu and found a nice git snippet which provides you a listing of branches checked out on a given date:

我正在浏览CommandLineFu,发现了一个不错的git片段,它为您提供了在给定日期签出的分支的列表:

git reflog --date=local | grep "Sep 10 .* checkout: moving from .* to" | grep -o "[a-zA-Z0-9\-]*$" | sort | uniq

I love this snippet because I often forget recently created branch names (...grow up and delete old branches, David!), especially when leaving work for the weekend.  Handy!

我喜欢这个片段,因为我经常忘记最近创建的分支名称(…长大并删除旧的分支,David!),尤其是在周末休假时。 便利!

翻译自:

git 获取某个分支

转载地址:http://uupwd.baihongyu.com/

你可能感兴趣的文章
easyui datagrid使用参考
查看>>
Linux系统快速启动方案
查看>>
Redis持久化方式
查看>>
选择器+盒模型
查看>>
进度条2
查看>>
强制类型转换到Number
查看>>
windows内核 内存管理
查看>>
Spring MVC中的DispatcherSevlet和ContextLoaderListener
查看>>
TypeScript 装饰器的执行原理
查看>>
C#之Process
查看>>
菜鸟成长记(十五)----- 要永远相信美好的事情即将发生
查看>>
JDBC
查看>>
CSS选择器
查看>>
HTML结构文档中那些基础又重要又容易被忽略的事?
查看>>
微服务的消费
查看>>
同一台电脑上个人的github账户如何与公司的gitlab账户共存
查看>>
一本通【例题4】Addition Chains——题解
查看>>
E - Cover it!
查看>>
E. 玩游戏
查看>>
mysql 必知必会 -- 一些笔记
查看>>