{"id":25346467,"url":"https://github.com/bharambetr2002/git-commands","last_synced_at":"2026-06-21T18:31:04.055Z","repository":{"id":275188311,"uuid":"925352217","full_name":"bharambetr2002/git-commands","owner":"bharambetr2002","description":"Git commands you should know","archived":false,"fork":false,"pushed_at":"2025-01-31T18:04:00.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T17:21:26.937Z","etag":null,"topics":["git"],"latest_commit_sha":null,"homepage":"","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/bharambetr2002.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":"2025-01-31T18:02:17.000Z","updated_at":"2025-01-31T18:04:40.000Z","dependencies_parsed_at":"2025-01-31T19:29:34.603Z","dependency_job_id":null,"html_url":"https://github.com/bharambetr2002/git-commands","commit_stats":null,"previous_names":["bharambetr2002/git-commands"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bharambetr2002/git-commands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharambetr2002%2Fgit-commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharambetr2002%2Fgit-commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharambetr2002%2Fgit-commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharambetr2002%2Fgit-commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bharambetr2002","download_url":"https://codeload.github.com/bharambetr2002/git-commands/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bharambetr2002%2Fgit-commands/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34622271,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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"],"created_at":"2025-02-14T13:36:27.410Z","updated_at":"2026-06-21T18:31:04.035Z","avatar_url":"https://github.com/bharambetr2002.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Commands Cheat Sheet\n\nThis cheat sheet contains the only Git commands you need to know to manage your repositories efficiently.\n\n## 1. Core Commands\n\n- `git init`: Initialize a new Git repository.\n- `git clone`: Clone a repository into a new directory.\n- `git add`: Add files to the staging area.\n- `git commit`: Record changes to the repository.\n- `git status`: Show the working directory status.\n- `git diff`: Show differences between commits, branches, or files.\n- `git checkout`: Switch branches or restore files.\n- `git reset`: Unstage changes or reset commits.\n- `git log`: Show commit logs.\n- `git show`: Show information about a commit.\n- `git tag`: Create, list, or delete tags.\n- `git push`: Push changes to a remote repository.\n- `git pull`: Fetch and merge changes from a remote repository.\n\n## 2. Branching Commands\n\n- `git branch`: List, create, or delete branches.\n- `git checkout -b`: Create and switch to a new branch.\n- `git merge`: Merge branches.\n- `git rebase`: Reapply commits on top of another base.\n- `git branch --set-upstream-to`: Set upstream tracking branch.\n- `git branch --unset-upstream`: Remove upstream tracking branch.\n- `git cherry-pick`: Apply the changes from a specific commit.\n\n## 3. Merging Commands\n\n- `git merge`: Merge branches.\n- `git rebase`: Reapply commits on top of another base.\n\n## 4. Stashing Commands\n\n- `git stash`: Save changes temporarily.\n- `git stash pop`: Apply and remove the most recent stash.\n- `git stash list`: List all stashes.\n- `git stash apply`: Apply a specific stash.\n- `git stash drop`: Remove a specific stash.\n\n## 5. Remote Commands\n\n- `git remote`: Manage remote repositories.\n- `git remote add`: Add a new remote.\n- `git remote remove`: Remove a remote.\n- `git fetch`: Download changes from a remote repository.\n- `git pull`: Fetch and merge changes from a remote.\n- `git push`: Push changes to a remote.\n- `git clone --mirror`: Create a mirror of a repository.\n\n## 6. Configuration Commands\n\n- `git config`: Get and set configuration variables.\n- `git global config`: Configure Git globally.\n- `git reset config`: Reset configuration values.\n\n## 7. Plumbing Commands\n\n- `git cat-file`: Provide content or type of an object.\n- `git checkout-index`: Copy files from the index.\n- `git commit-tree`: Create a new commit object.\n- `git diff-tree`: Show changes between tree objects.\n- `git for-each-ref`: Display references.\n- `git hash-object`: Compute object ID and create a blob.\n- `git ls-files`: Show tracked files.\n- `git ls-remote`: List references in a remote repository.\n- `git merge-tree`: Show three-way merge results.\n- `git read-tree`: Read a tree object.\n- `git rev-parse`: Parse revision identifiers.\n- `git show-branch`: Show branches and their commits.\n- `git show-ref`: List references.\n- `git symbolic-ref`: Read and modify symbolic refs.\n- `git tag --list`: List tags.\n- `git update-ref`: Update a reference.\n\n## 8. Porcelain Commands\n\n- `git blame`: Show who changed what and when.\n- `git bisect`: Find the commit that introduced a bug.\n- `git checkout`: Switch branches or restore files.\n- `git commit`: Record changes to the repository.\n- `git diff`: Show differences between commits or files.\n- `git fetch`: Download changes from a remote.\n- `git grep`: Search for patterns in tracked files.\n- `git log`: Show commit logs.\n- `git merge`: Merge branches.\n- `git push`: Push changes to a remote.\n- `git rebase`: Reapply commits on top of another base.\n- `git reset`: Unstage changes or reset commits.\n- `git show`: Show information about a commit.\n- `git tag`: Create, list, or delete tags.\n\n## 9. Alias Commands\n\n- `git config --global alias.\u003calias\u003e \u003ccommand\u003e`: Create a custom Git alias.\n\n## 10. Hook Commands\n\n- `git config --local core.hooksPath \u003cpath\u003e`: Set a custom path for Git hooks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbharambetr2002%2Fgit-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbharambetr2002%2Fgit-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbharambetr2002%2Fgit-commands/lists"}