{"id":26902493,"url":"https://github.com/johnnelbaylen/git","last_synced_at":"2025-04-01T09:43:37.295Z","repository":{"id":284257048,"uuid":"953497208","full_name":"JohnnelBaylen/git","owner":"JohnnelBaylen","description":"Cheat Sheet","archived":false,"fork":false,"pushed_at":"2025-03-25T00:06:34.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T01:21:59.375Z","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/JohnnelBaylen.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-03-23T14:06:25.000Z","updated_at":"2025-03-25T00:06:37.000Z","dependencies_parsed_at":"2025-03-25T01:22:03.014Z","dependency_job_id":null,"html_url":"https://github.com/JohnnelBaylen/git","commit_stats":null,"previous_names":["johnnelbaylen/git"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnelBaylen%2Fgit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnelBaylen%2Fgit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnelBaylen%2Fgit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JohnnelBaylen%2Fgit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JohnnelBaylen","download_url":"https://codeload.github.com/JohnnelBaylen/git/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620211,"owners_count":20806718,"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"],"created_at":"2025-04-01T09:43:36.440Z","updated_at":"2025-04-01T09:43:37.289Z","avatar_url":"https://github.com/JohnnelBaylen.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Commands Guide\n\n## Repository Management\n\n- `git init` - Initialize a new Git repository\n- `git clone \u003crepo-url\u003e` - Clone a repository from a URL\n\n## Basic Commands\n\n- `git status` - Show the status of changes\n- `git add \u003cfile-name\u003e` - Add changes to the staging area\n- `git commit -m \"message/title\"` - Commit changes with a descriptive message\n- `git log` - View commit history\n\n## Branching\n\n- `git branch` - List branches\n- `git branch -M \u003cbranch-name\u003e` - Create and rename a new branch\n- `git checkout \u003cbranch-name\u003e` - Switch to a specific branch  \n- `git merge \u003cbranch-name\u003e` - Merge changes from a branch\n- `git branch -d \u003cbranch-name\u003e` - Delete a branch\n\n## Remote Repositories\n\n- `git remote` - List remote repositories\n- `git remote add \u003cname\u003e \u003curl\u003e` - Add a remote repository\n- `git push \u003cremote\u003e \u003cbranch\u003e` - Push changes to a remote repository\n- `git pull \u003cremote\u003e \u003cbranch\u003e` - Pull changes from a remote repository\n\n## Undoing Changes\n\n- `git pull` - Fetch and merge changes from the remote repository\n- `git fetch` - Fetch changes without merging\n- `git reset --hard HEAD` - Discard all local changes\n- `git revert \u003ccommit-hash\u003e` - Revert changes in a specific commit\n\n## Notes\n\nThis guide provides a quick reference to essential Git commands for repository management, branching, remote operations, and undoing changes.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnelbaylen%2Fgit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnelbaylen%2Fgit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnelbaylen%2Fgit/lists"}