{"id":26385010,"url":"https://github.com/hdaojin/git-init","last_synced_at":"2026-05-19T00:34:45.532Z","repository":{"id":199877346,"uuid":"545343184","full_name":"hdaojin/git-init","owner":"hdaojin","description":"A script for git initialization. Suports Windows, Linux, macOS.","archived":false,"fork":false,"pushed_at":"2023-03-15T07:27:50.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-10-13T04:35:41.413Z","etag":null,"topics":["git","python","script","ssh"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hdaojin.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}},"created_at":"2022-10-04T07:41:48.000Z","updated_at":"2023-10-13T04:36:02.853Z","dependencies_parsed_at":"2023-10-13T04:36:01.924Z","dependency_job_id":null,"html_url":"https://github.com/hdaojin/git-init","commit_stats":null,"previous_names":["hdaojin/git-init"],"tags_count":2,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hdaojin%2Fgit-init","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hdaojin%2Fgit-init/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hdaojin%2Fgit-init/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hdaojin%2Fgit-init/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hdaojin","download_url":"https://codeload.github.com/hdaojin/git-init/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243993818,"owners_count":20380466,"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","python","script","ssh"],"created_at":"2025-03-17T07:37:44.549Z","updated_at":"2026-05-19T00:34:45.484Z","avatar_url":"https://github.com/hdaojin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-init\n\nA script for git initialization. Supports Windows, Linux, and macOS.\n\n## Function\n\n* Check if the git is installed.\n* Check if the ssh package is installed.\n* Configure the git user name and email.\n* Generate the ssh key if it doesn't exist.\n* Set the ssh client config to use the ssh key when connecting to github.com.\n* Copy the ssh key to the clipboard in order to add it to the github account in webpage.\n* Attempts to ssh to GitHub.\n  \n## Usage\n\n1. Download the script from \u003chttps://github.com/hdaojin/git-init/releases/\u003e.\n\n2. Run the script.\n\n   ```bash\n   python3 git-init.py\n   ```\n\n3. Add the ssh public key content to the github account in webpage.\n\n   * The ssh public key content is in the clipboard.\n   * Login your github account in webpage.\n   * Click the user icon in the top right corner, and then click \"Settings\" -\u003e \"SSH and GPG keys\" -\u003e \"New SSH key\".\n   * Write the \"Title\" and paste the ssh public key content in the \"Key\" field.\n\n## License\n\n[GPLv3](https://www.gnu.org/licenses/gpl-3.0.en.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhdaojin%2Fgit-init","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhdaojin%2Fgit-init","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhdaojin%2Fgit-init/lists"}