{"id":16260891,"url":"https://github.com/piyush-linux/lets-learn-git","last_synced_at":"2026-01-21T03:04:56.280Z","repository":{"id":246807900,"uuid":"822228975","full_name":"Piyush-linux/Lets-Learn-Git","owner":"Piyush-linux","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-30T17:26:24.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-08T14:15:03.427Z","etag":null,"topics":[],"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/Piyush-linux.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":"2024-06-30T16:35:16.000Z","updated_at":"2024-06-30T17:31:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"b50174e1-fb20-45cb-89ee-55073e77e083","html_url":"https://github.com/Piyush-linux/Lets-Learn-Git","commit_stats":null,"previous_names":["piyush-linux/lets-learn-git"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Piyush-linux/Lets-Learn-Git","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piyush-linux%2FLets-Learn-Git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piyush-linux%2FLets-Learn-Git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piyush-linux%2FLets-Learn-Git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piyush-linux%2FLets-Learn-Git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Piyush-linux","download_url":"https://codeload.github.com/Piyush-linux/Lets-Learn-Git/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Piyush-linux%2FLets-Learn-Git/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28624342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T02:47:06.670Z","status":"ssl_error","status_checked_at":"2026-01-21T02:45:44.886Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2024-10-10T16:21:40.507Z","updated_at":"2026-01-21T03:04:56.264Z","avatar_url":"https://github.com/Piyush-linux.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# GIT\n\n### Git Tutorial for Beginners\n\n#### 1. What is Git?\n\n- Git is a distributed version control system designed to handle everything from small to very large projects with speed and efficiency.\n- It tracks changes to files, allowing multiple people to work on them simultaneously, coordinating their work seamlessly.\n\n#### 2. Installing Git\n\n- **Linux**: Install via package manager (`apt`, `yum`, etc.).\n  ```bash\n  sudo apt-get install git  # Debian/Ubuntu\n  sudo yum install git      # CentOS/Fedora\n  ```\n- **Mac**: Install Git using Homebrew or download from the Git website.\n  ```bash\n  brew install git         # Homebrew\n  ```\n- **Windows**: Download and install from [Git for Windows](https://gitforwindows.org/).\n\n#### 3. Configuring Git\n\n- Set your username and email address:\n  ```bash\n  git config --global user.name \"Your Name\"\n  git config --global user.email \"your.email@example.com\"\n  git --version # To confirm that git is installed and configured correctly on your machine\n  ```\n\n#### 4. Creating a Git Repository\n\n- Initialize a new Git repository:\n  ```bash\n  git init\n  ```\n\n#### 5. Basic Git Workflow\n\n- **Checking Status**:\n  ```bash\n  git status\n  ```\n\n- **Adding Files**:\n  ```bash\n  git add \u003cfilename\u003e     # Stage specific file\n  git add .              # Stage all files\n  ```\n\n- **Committing Changes**:\n  ```bash\n  git commit -m \"Commit message\"\n  ```\n\n#### 6. Branching and Merging\n\n- **Creating a Branch**:\n  ```bash\n  git branch \u003cbranch-name\u003e\n  git checkout \u003cbranch-name\u003e   # Switch to the new branch\n  ```\n\n- **Merging Branches**:\n  ```bash\n  git checkout main           # Switch to main branch (or target branch)\n  git merge \u003cbranch-name\u003e     # Merge changes from \u003cbranch-name\u003e into main\n  ```\n\n#### 7. Remote Repositories (GitHub)\n\n- **Linking to a Remote Repository**:\n  ```bash\n  git remote add origin \u003cremote-url\u003e   # Add a remote repository\n  ```\n\n- **Pushing Changes**:\n  ```bash\n  git push -u origin main     # Push local changes to the remote repository\n  ```\n\n- **Pulling Changes**:\n  ```bash\n  git pull origin main        # Pull latest changes from remote repository\n  ```\n\n#### 8. Resolving Conflicts\n\n- **Conflict Resolution**:\n  - Edit conflicted files to resolve conflicts.\n  - Add resolved files using `git add` and commit changes.\n\n#### 9. Git History and Log\n\n- **Viewing Commit History**:\n  ```bash\n  git log                # View commit history\n  git log --oneline      # Compact view of commit history\n  ```\n\n#### 10. Additional Git Commands\n\n- **Undoing Changes**:\n  ```bash\n  git reset HEAD \u003cfilename\u003e   # Unstage changes\n  git checkout -- \u003cfilename\u003e  # Discard changes in working directory\n  ```\n\n- **Git Help**:\n  ```bash\n  git --help             # Git command help\n  ```\n\n#### 11. Git Resources\n\n- Official Git Documentation: [Git SCM](https://git-scm.com/doc)\n- GitHub Guides: [GitHub Docs](https://docs.github.com/en/github)\n- Interactive Learning: [Git - Learn](https://learngitbranching.js.org/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyush-linux%2Flets-learn-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpiyush-linux%2Flets-learn-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpiyush-linux%2Flets-learn-git/lists"}