Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Branch creation date #1596

Answered by Byron
nricciardi asked this question in Q&A
Discussion options

Is there any way to know the creation date of a branch?
I've already tried to get the commits of a branch and look for which one had the lowest date, but this doesn't work because if a branch has been generated from another branch, it will also have the commits of the original branch, thus returning an incorrect date (the one of the original branch).

You must be logged in to vote

Git does not keep track of branch creation dates. However, branches may just be files which do have a creation and/or modification date associated with them which might be useful as proxy in some situations. Note that branches can also be packed, which is when they are written into a single file, making it impossible to obtain timestamps as described here.

Replies: 1 comment

Comment options

Git does not keep track of branch creation dates. However, branches may just be files which do have a creation and/or modification date associated with them which might be useful as proxy in some situations. Note that branches can also be packed, which is when they are written into a single file, making it impossible to obtain timestamps as described here.

You must be logged in to vote
0 replies
Answer selected by nricciardi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1594 on May 21, 2023 07:56.

AltStyle によって変換されたページ (->オリジナル) /