{"id":29055024,"url":"https://github.com/theekshana-nirmal/learn-git","last_synced_at":"2026-04-29T19:31:36.141Z","repository":{"id":299295397,"uuid":"1000080003","full_name":"theekshana-nirmal/learn-git","owner":"theekshana-nirmal","description":"This is a quick reference to Git! Maintained by three contributors, we’re adding sections and refining content to make version control simple for all developers. Explore, learn, and contribute! 🌟","archived":false,"fork":false,"pushed_at":"2025-06-15T19:20:26.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-27T03:52:55.490Z","etag":null,"topics":["git","github","learning"],"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/theekshana-nirmal.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,"zenodo":null}},"created_at":"2025-06-11T08:30:45.000Z","updated_at":"2025-06-15T19:20:30.000Z","dependencies_parsed_at":"2025-06-15T21:00:22.910Z","dependency_job_id":"4584ecd4-39c0-4820-bb90-4e7a1678120f","html_url":"https://github.com/theekshana-nirmal/learn-git","commit_stats":null,"previous_names":["theekshana-nirmal/learn-git"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/theekshana-nirmal/learn-git","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theekshana-nirmal%2Flearn-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theekshana-nirmal%2Flearn-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theekshana-nirmal%2Flearn-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theekshana-nirmal%2Flearn-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theekshana-nirmal","download_url":"https://codeload.github.com/theekshana-nirmal/learn-git/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theekshana-nirmal%2Flearn-git/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32440849,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","github","learning"],"created_at":"2025-06-27T03:38:15.321Z","updated_at":"2026-04-29T19:31:36.125Z","avatar_url":"https://github.com/theekshana-nirmal.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 Git Cheatsheet: Master Version Control with Ease! 🌟\n\nWelcome to the **Ultimate Git Cheatsheet**! Whether you're a beginner or a seasoned developer, this concise guide will help you navigate Git commands like a pro. From initializing repositories to managing branches and collaborating with teams, we've got you covered. Let's dive into the world of version control! 🎉\n\n---\n\n## 📋 Table of Contents\n- [🚀 Git Cheatsheet: Master Version Control with Ease! 🌟](#-git-cheatsheet-master-version-control-with-ease-)\n  - [📋 Table of Contents](#-table-of-contents)\n  - [🌱 Getting Started](#-getting-started)\n  - [🛠 Basic Commands](#-basic-commands)\n  - [🌿 Branching \\\u0026 Merging](#-branching--merging)\n\n---\n\n## 🌱 Getting Started\nSet up your Git environment and start tracking your projects.\n\n- **Install Git**: Download and install from [git-scm.com](https://git-scm.com/).\n- **Configure Git**:\n  ```bash\n  git config --global user.name \"Your Name\"\n  git config --global user.email \"your.email@example.com\"\n  ```\n- **Initialize a Repository**:\n  ```bash\n  git init\n  ```\n- **Clone a Repository**:\n  ```bash\n  git clone \u003crepository-url\u003e\n  ```\n\n---\n\n## 🛠 Basic Commands\nManage your files and commits with these essential commands.\n\n- **Check Status**:\n  ```bash\n  git status\n  ```\n- **Add Files**:\n  ```bash\n  git add \u003cfile\u003e          # Add specific file\n  git add .               # Add all changes\n  ```\n- **Commit Changes**:\n  ```bash\n  git commit -m \"Your commit message\"\n  ```\n- **View Commit History**:\n  ```bash\n  git log\n  ```\n\n---\n\n## 🌿 Branching \u0026 Merging\nWork on features or fixes without affecting the main codebase.\n\n- **Create a Branch**:\n  ```bash\n  git branch \u003cbranch-name\u003e\n  ```\n- **Switch to a Branch**:\n  ```bash\n  git checkout \u003cbranch-name\u003e\n  ```\n- **Create and Switch to a Branch**:\n  ```bash\n  git checkout -b \u003cbranch-name\u003e\n  ```\n- **Merge a Branch**:\n  ```bash\n  git checkout main\n  git merge \u003cbranch-name\u003e\n  ```\n- **Delete a Branch**:\n  ```bash\n  git branch -d \u003cbranch-name\u003e\n  ```\n\n---\n\n## 🤝 Collaboration\nPush, pull, and collaborate with remote repositories.\n\n- **Add a Remote Repository**:\n  ```bash\n  git remote add origin \u003crepository-url\u003e\n  ```\n- **Push Changes**:\n  ```bash\n  git push origin \u003cbranch-name\u003e\n  ```\n- **Pull Changes**:\n  ```bash\n  git pull origin \u003cbranch-name\u003e\n  ```\n- **Fetch Changes**:\n  ```bash\n  git fetch origin\n  ```\n\n---\n\n## 🔄 Undoing Changes\nFix mistakes or revert unwanted changes.\n\n- **Unstage Files**:\n  ```bash\n  git restore --staged \u003cfile\u003e\n  ```\n- **Discard Changes**:\n  ```bash\n  git restore \u003cfile\u003e\n  ```\n- **Amend Last Commit**:\n  ```bash\n  git commit --amend\n  ```\n- **Revert a Commit**:\n  ```bash\n  git revert \u003ccommit-hash\u003e\n  ```\n- **Reset to Previous State**:\n  ```bash\n  git reset --hard \u003ccommit-hash\u003e\n  ```\n\n---\n\n## 📦 Stashing\nTemporarily save changes without committing.\n\n- **Stash Changes**:\n  ```bash\n  git stash\n  ```\n- **List Stashes**:\n  ```bash\n  git stash list\n  ```\n- **Apply a Stash**:\n  ```bash\n  git stash apply\n  ```\n- **Drop a Stash**:\n  ```bash\n  git stash drop\n  ```\n\n---","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheekshana-nirmal%2Flearn-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheekshana-nirmal%2Flearn-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheekshana-nirmal%2Flearn-git/lists"}