I know I can do a shallow clone by specifying the --depth
flag. However, this takes in an integer as its value. Is there any way to have the identical behavior with a datetime
? I do not wish to clone the entire repository and checkout a previous state.
相关问题
- Date with SimpleDateFormat in Java
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
相关文章
- 请教Git如何克隆本地库?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- MYSQL: How can I find 'last monday's date&
- Is there a version control system abstraction for
- Calculate number of working days in a month [dupli
- ssh: Could not resolve hostname git: Name or servi
Why yes it is. At least only with Git 2.11 (Q4 2016)
See commit cccf74e, commit 079aa97, commit 2997178, commit cdc3727, commit 859e5df, commit a45a260, commit 269a7a8, commit 41da711, commit 6d43a0c, commit 994c2aa, commit 508ea88, commit 569e554, commit 3d9ff4d, commit 79891cb, commit 1dd73e2, commit 0d789a5, commit 45a3e52, commit 3f0f662, commit 7fcbd37, commit 6e414e3 (12 Jun 2016) by Nguyễn Thái Ngọc Duy (
pclouds
).Helped-by: Duy Nguyen (
pclouds
), Eric Sunshine (sunshineco
), and Junio C Hamano (gitster
).(Merged by Junio C Hamano --
gitster
-- in commit a460ea4, 10 Oct 2016)git clone
now includes:The date format should be one of the formats presented in
git log
.Although the tests show raw dates:
"raw date" means: date as seconds since the epoch (1970-01-01 00:00:00 UTC), followed by a space, and then the timezone as an offset from UTC (a + or - with four digits; the first two are hours, and the second two are minutes).