{"id":18353936,"url":"https://github.com/arnested/git-templates","last_synced_at":"2025-04-10T00:56:00.450Z","repository":{"id":6128948,"uuid":"7357234","full_name":"arnested/git-templates","owner":"arnested","description":"My Git template folder","archived":false,"fork":false,"pushed_at":"2013-04-02T20:12:51.000Z","size":128,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T00:56:00.359Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arnested.png","metadata":{"files":{"readme":"README.pod","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-28T17:13:18.000Z","updated_at":"2022-12-10T22:58:07.000Z","dependencies_parsed_at":"2022-09-13T21:51:05.559Z","dependency_job_id":null,"html_url":"https://github.com/arnested/git-templates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnested%2Fgit-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnested%2Fgit-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnested%2Fgit-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnested%2Fgit-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arnested","download_url":"https://codeload.github.com/arnested/git-templates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137993,"owners_count":21053775,"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":[],"created_at":"2024-11-05T21:43:32.563Z","updated_at":"2025-04-10T00:56:00.423Z","avatar_url":"https://github.com/arnested.png","language":"Perl","readme":"=head1 My Git templates\n\nThis is my Git templates.\n\nI currently just have a post-checkout hook that is run after each\nclone. The rest of it is just the \"standard\" template.\n\nPut it somewhere (i.e. in C\u003c~/.gitconfig.d/git-templates\u003e) and setup\nyour git to use it:\n\n    git config --global --replace-all init.templatedir ~/.gitconfig.d/git-templates\n\n\n=head1 Dependencies\n\nI had to install JSON.pm and Config::IniFiles.pm:\n\n    sudo cpan -i JSON\n    sudo cpan -i Config::IniFiles\n\nThe rest of the dependencies was already installed.\n\n=head1 The actual hooks\n\n=head2 post-checkout\n\nDoesn't do anything if it is a not run as a clone operation.\n\nIf git is checking out a specific revision (at least when C\u003cdrush\nmake\u003e does it) the C\u003c.git/logs/refs\u003e folder is not created and then\nyou won't be able to run C\u003cgit stash\u003e. So let us just make sure the\nfolder is always there.\n\nGets the remote URL and does stuff based on where we are cloning from.\n\n=head3 Drupal.org repositories.\n\nConfigure C\u003cuser.name\u003e and C\u003cuser.email\u003e.\n\nThey will be set to the value of C\u003cuser.drupal.name\u003e and\nC\u003cuser.drupal.email\u003e if they exist.\n\nAlso set the description of the checkout (C\u003c.git/description\u003e) to the\ndescription found in the C\u003c.info\u003e file.\n\n    git config --global --replace-all user.drupal.name arnested\n    git config --global --replace-all user.drupal.email arnested@245635.no-reply.drupal.org\n\n=head3 GitHub repositories.\n\nUse the GitHub API to look up if this repository is a fork of\nanother repository and if so set the original repository as\n\"upstream\" branch.\n\nConfigure C\u003cuser.name\u003e and C\u003cuser.email\u003e based on the GitHub organization.\n\nThey will be set to the value of C\u003cuser.$org.name\u003e and\nC\u003cuser.$org.email\u003e if they exist.\n\nAlso set the description of the checkout (C\u003c.git/description\u003e) to the\ndescription of the GitHub repository.\n\nGetting data through the GitHub API is currently only supported for\npublic repos.\n\n    git config --global --replace-all user.reload.email arne@reload.dk\n\nAdd remote origins for fetching pull requests, see\nhttps://gist.github.com/piscisaureus/3342247.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnested%2Fgit-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnested%2Fgit-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnested%2Fgit-templates/lists"}