相关疑难解决方法(0)

如何确定何时创建Git分支?

有没有办法确定何时创建Git分支?我的回购中有一个分支,我不记得创建它,并认为可能看到创建时间戳会慢慢记忆.

git branch git-branch

297
推荐指数
12
解决办法
20万
查看次数

找出创建git分支的时间(不是第一次提交到该分支)

我如何知道何时创建了一个git分支?

我不想知道什么时候第一次提交到那个分支.我想知道什么时候创建了这个分支.

这是一个重现一个工作示例的脚本:

#! /bin/bash
set -x
set -e

mkdir test
cd test
git init
echo "hello" >readme
git add readme
git commit -m "initial import"
date

sleep 5
git checkout -b br1
date                   # this is the date that I want to find out.

sleep 5
echo "hello_br1" >readme
git commit -a -m "hello_br1"
date

echo "hello_br1_b" >readme
git commit -a -m "hello_br1_b"

git checkout master
echo "hello_master" >readme
git commit -a -m "hello_master"

git branch -a; 
git log …
Run Code Online (Sandbox Code Playgroud)

git git-branch

11
推荐指数
2
解决办法
4万
查看次数

标签 统计

git ×2

git-branch ×2

branch ×1