Home  >  Article  >  Backend Development  >  Some use cases for Git

Some use cases for Git

一个新手
一个新手Original
2017-09-14 09:08:392173browse

Output the commit number author time according to the format

git log --pretty=format:"%h %an %cd" --date=iso

Get all remote tags and his commit sha1

git ls-remote --tags origin | grep [0-9]$

Get All commits from start time to end time

git log --since="2016-11-24 01:29:13 -0800" --until="2016-11-25 17:01:54 +0800" --pretty=format:"%Cgreen%h%Creset %an %cd %s" --date=iso

The above is the detailed content of Some use cases for Git. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn