https://github.com/zvirja/git-sync-creation-date
Tool to set file creation date to the actual value based on git history
https://github.com/zvirja/git-sync-creation-date
Last synced: 5 months ago
JSON representation
Tool to set file creation date to the actual value based on git history
- Host: GitHub
- URL: https://github.com/zvirja/git-sync-creation-date
- Owner: zvirja
- License: mit
- Created: 2019-02-06T09:30:32.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-24T12:43:53.000Z (about 4 years ago)
- Last Synced: 2025-02-03T09:21:17.584Z (5 months ago)
- Language: C#
- Size: 43.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
[](https://ci.appveyor.com/project/Zvirja/git-sync-creation-date/branch/master) [](https://www.nuget.org/packages/git-sync-creation-date/)
# git-sync-creation-date
It's a dotnet tool to synchronize file creation date on file system with the commit history. Tool scans the commit history and extract creation date for each file (date when a particular file appeared for the first time).
It might be useful if your tooling relies on the file creation dates (e.g. to provide right copyright header).
# Installation
Tool is distributed as a dotnet tool. To install it you should have .NET Core 2.1 installed (or above). Then run the following command:
```
dotnet tool install -g git-sync-creation-date
```# Usage
To run the tool just navigate to a directory which is a part of the repo (usual repository root), open command line and run the tool by name:
```
git-sync-creation-date
```The tool will update creation date for all the files in the current and nested directories.
## Options
Run the tool with `--help` or just `-h` flag to see the possible options.