Home > Backend Development > PHP Tutorial > Some use cases for Git

Some use cases for Git

一个新手
Release: 2023-03-16 06:26:02
Original
2239 people have browsed it

Output the commit number author time according to the format

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

Get all remote tags and his commit sha1

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

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template