{"id":19979509,"url":"https://github.com/c-rack/first-steps-with-git","last_synced_at":"2026-04-11T20:33:28.932Z","repository":{"id":141697094,"uuid":"81641592","full_name":"c-rack/first-steps-with-git","owner":"c-rack","description":"Git setup guide for macOS and introduction on how to use it","archived":false,"fork":false,"pushed_at":"2024-10-27T09:18:48.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-02T10:55:26.880Z","etag":null,"topics":["git","macos"],"latest_commit_sha":null,"homepage":null,"language":null,"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/c-rack.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-11T08:50:09.000Z","updated_at":"2024-10-27T09:18:51.000Z","dependencies_parsed_at":"2024-02-14T23:23:15.420Z","dependency_job_id":"0856e7db-3533-44ba-a937-1c5f9172f07e","html_url":"https://github.com/c-rack/first-steps-with-git","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c-rack/first-steps-with-git","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-rack%2Ffirst-steps-with-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-rack%2Ffirst-steps-with-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-rack%2Ffirst-steps-with-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-rack%2Ffirst-steps-with-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-rack","download_url":"https://codeload.github.com/c-rack/first-steps-with-git/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-rack%2Ffirst-steps-with-git/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31695158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T20:18:30.949Z","status":"ssl_error","status_checked_at":"2026-04-11T20:18:29.982Z","response_time":54,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","macos"],"created_at":"2024-11-13T03:38:03.201Z","updated_at":"2026-04-11T20:33:28.902Z","avatar_url":"https://github.com/c-rack.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# first-steps-with-git\nGit setup guide for macOS and introduction on how to use it\n\n\u003e _This is just a basic collection of tasks that I perform on a new machine.\n\u003e For more, read the [git documentation](https://git-scm.com/doc)._\n\n## Recommended tools\n\n* [iTerm2](https://www.iterm2.com/)\n* [Homebrew](http://brew.sh/)\n* [Oh-My-Zsh](http://ohmyz.sh/)\n\n## Installation\n\nJust type `brew install git` in the terminal.\n\n## Configuration\n\nConfigure email and name: \n```\ngit config --global user.name \"John Doe\"\ngit config --global user.email johndoe@example.com\n```\n\nChange default pull behavior\n```\ngit config --global pull.rebase true\n```\n\nConfigure a [better git log](https://coderwall.com/p/euwpig/a-better-git-log):\n```\ngit config --global alias.lg \"log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)\u003c%an\u003e%Creset' --abbrev-commit\"\n```\n\nEnable signed commits (you need to `git commit -S` to sign the commit with your key) \n```\ngit config --global gpg.format ssh\ngit config --global user.signingKey ~/.ssh/id_rsa.pub\n```\n\nEnable safe force pushing\n```\ngit config --global alias.fpush push --force-with-lease\n```\n\nEnable reuse recorded resolution\n```\ngit config --global rerere.enabled true\ngit config --global rerere.autoUpdate true\n```\n\nMake sure `git push` commands are [performing the correct compression](https://www.jonathancreamer.com/how-we-shrunk-our-git-repo-size-by-94-percent/)\n```\ngit config --global pack.usePathWalk true\n```\n\n## Maintenance\n\nIn each repository, enable the automatic git maintenance\n```\ngit maintenance start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-rack%2Ffirst-steps-with-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-rack%2Ffirst-steps-with-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-rack%2Ffirst-steps-with-git/lists"}