{"id":16021811,"url":"https://github.com/ararslan/git-file-history","last_synced_at":"2025-03-18T03:31:41.922Z","repository":{"id":146877155,"uuid":"76931039","full_name":"ararslan/git-file-history","owner":"ararslan","description":"Get the full, patchable commit history for a single file","archived":false,"fork":false,"pushed_at":"2019-02-01T22:38:17.000Z","size":3,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T16:40:54.106Z","etag":null,"topics":["git","git-addons"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ararslan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-12-20T06:47:39.000Z","updated_at":"2022-03-31T16:31:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc57a053-5b3b-4124-aaf6-7c3d375f4daa","html_url":"https://github.com/ararslan/git-file-history","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"0c999765637adb642c43ac3e93faa84e13abafb1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ararslan%2Fgit-file-history","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ararslan%2Fgit-file-history/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ararslan%2Fgit-file-history/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ararslan%2Fgit-file-history/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ararslan","download_url":"https://codeload.github.com/ararslan/git-file-history/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244150751,"owners_count":20406650,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","git-addons"],"created_at":"2024-10-08T18:06:01.901Z","updated_at":"2025-03-18T03:31:41.916Z","avatar_url":"https://github.com/ararslan.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git file-history\n\nThis script provides a Git subcommand to retrieve commit history for a particular file\nin a repository.\nThis is particularly useful for preserving the commit history of a file when moving it\nto another repository.\nTo generate a patch file, pipe the output to a .patch file.\nOtherwise the output is displayed using Git's default pager.\n\n## Installation\n\nPut the `git-file-history` file anywhere in your path.\nThat's it!\n\n## Example\n\nSay you have a repository of recipes and you want to move the section for greens to its\nown separate repository, while preserving full authorship information.\n\n```bash\ncd ~/recipes\ngit file-history greens/salad.txt \u003e ~/salad.patch\nmkdir ~/leafy-recipes \u0026\u0026 cd ~/leafy-recipes\ngit init\ngit am --committer-date-is-author-date \u003c ~/salad.patch\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fararslan%2Fgit-file-history","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fararslan%2Fgit-file-history","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fararslan%2Fgit-file-history/lists"}