Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 8 days 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 (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-24T12:43:53.000Z (over 3 years ago)
- Last Synced: 2024-12-14T02:11:32.327Z (27 days 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
[![Build status](https://ci.appveyor.com/api/projects/status/t3djtth456h5ff3x/branch/master?svg=true)](https://ci.appveyor.com/project/Zvirja/git-sync-creation-date/branch/master) [![Nuget version](https://img.shields.io/nuget/v/git-sync-creation-date.svg)](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.