{"id":17248299,"url":"https://github.com/sonichigo/git-workshop","last_synced_at":"2025-07-21T20:32:58.391Z","repository":{"id":250279585,"uuid":"833998775","full_name":"Sonichigo/Git-Workshop","owner":"Sonichigo","description":"Learn Git Basis quickly","archived":false,"fork":false,"pushed_at":"2024-07-26T08:01:56.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T01:33:57.474Z","etag":null,"topics":["git","git-lear","learngit","svm"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Sonichigo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-07-26T07:58:01.000Z","updated_at":"2024-07-26T08:02:48.000Z","dependencies_parsed_at":"2024-07-26T09:26:10.615Z","dependency_job_id":"5d0a3aa3-f540-49c9-ac07-8a6be48aae25","html_url":"https://github.com/Sonichigo/Git-Workshop","commit_stats":null,"previous_names":["sonichigo/git-workshop"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sonichigo%2FGit-Workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sonichigo%2FGit-Workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sonichigo%2FGit-Workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sonichigo%2FGit-Workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sonichigo","download_url":"https://codeload.github.com/Sonichigo/Git-Workshop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245605709,"owners_count":20643030,"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","git-lear","learngit","svm"],"created_at":"2024-10-15T06:40:41.806Z","updated_at":"2025-03-26T06:42:39.672Z","avatar_url":"https://github.com/Sonichigo.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git-Workshop\n\nWelcome to the Git Workshop! This workshop is designed to introduce you to Git, a distributed version control system that helps manage and track changes in your code.\n\n\n## Table of Contents\n\n1. [Introduction to Git](#introduction-to-git)\n2. [Installation](#installation)\n3. [Getting Started with Git](#getting-started-with-git)\n   - [Initializing a Repository](#initializing-a-repository)\n   - [Cloning a Repository](#cloning-a-repository)\n4. [Basic Git Commands](#basic-git-commands)\n   - [Checking Status](#checking-status)\n   - [Adding Files](#adding-files)\n   - [Committing Changes](#committing-changes)\n   - [Pushing Changes](#pushing-changes)\n   - [Pulling Changes](#pulling-changes)\n5. [Branching and Merging](#branching-and-merging)\n   - [Creating a Branch](#creating-a-branch)\n   - [Switching Branches](#switching-branches)\n   - [Merging Branches](#merging-branches)\n6. [Working with Remote Repositories](#working-with-remote-repositories)\n   - [Adding a Remote](#adding-a-remote)\n   - [Fetching and Pulling](#fetching-and-pulling)\n   - [Pushing to Remote](#pushing-to-remote)\n7. [Advanced Git Commands](#advanced-git-commands)\n   - [Stashing Changes](#stashing-changes)\n   - [Rebasing](#rebasing)\n8. [Best Practices](#best-practices)\n9. [Resources](#resources)\n10. [Q\u0026A](#qa)\n\n## Introduction to Git\n\nGit is a distributed version control system created by Linus Torvalds in 2005. It allows multiple developers to work on a project simultaneously, track changes, and collaborate effectively. Git is widely used in the software development industry and is a fundamental tool for version control.\n\n## Installation\n\n### Windows\n\nDownload the Git installer from the [official Git website](https://git-scm.com/downloads) and follow the installation instructions.\n\n### macOS\n\nInstall Git using Homebrew:\n```bash\nbrew install git\n```\n\n### Linux\n\nInstall Git using the package manager:\n```bash\nsudo apt-get install git        # Debian/Ubuntu\nsudo yum install git            # Fedora\n```\n\n## Getting Started with Git\n\n### Initializing a Repository\n\nTo create a new Git repository:\n```bash\ngit init\n```\n\n### Cloning a Repository\n\nTo clone an existing repository:\n```bash\ngit clone \u003crepository-url\u003e\n```\n\n## Basic Git Commands\n\n### Checking Status\n\nTo check the status of your working directory and staging area:\n```bash\ngit status\n```\n\n### Adding Files\n\nTo add files to the staging area:\n```bash\ngit add \u003cfile-name\u003e\n```\n\nTo add all files:\n```bash\ngit add .\n```\n\n### Committing Changes\n\nTo commit changes with a message:\n```bash\ngit commit -m \"Your commit message\"\n```\n\n### Pushing Changes\n\nTo push changes to the remote repository:\n```bash\ngit push origin \u003cbranch-name\u003e\n```\n\n### Pulling Changes\n\nTo pull changes from the remote repository:\n```bash\ngit pull origin \u003cbranch-name\u003e\n```\n\n## Branching and Merging\n\n### Creating a Branch\n\nTo create a new branch:\n```bash\ngit branch \u003cbranch-name\u003e\n```\n\n### Switching Branches\n\nTo switch to a different branch:\n```bash\ngit checkout \u003cbranch-name\u003e\n```\n\n### Merging Branches\n\nTo merge a branch into the current branch:\n```bash\ngit merge \u003cbranch-name\u003e\n```\n\n## Working with Remote Repositories\n\n### Adding a Remote\n\nTo add a remote repository:\n```bash\ngit remote add origin \u003cremote-url\u003e\n```\n\n### Fetching and Pulling\n\nTo fetch changes from the remote repository:\n```bash\ngit fetch origin\n```\n\nTo pull changes from the remote repository:\n```bash\ngit pull origin \u003cbranch-name\u003e\n```\n\n### Pushing to Remote\n\nTo push changes to the remote repository:\n```bash\ngit push origin \u003cbranch-name\u003e\n```\n\n## Advanced Git Commands\n\n### Stashing Changes\n\nTo stash changes:\n```bash\ngit stash\n```\n\nTo apply stashed changes:\n```bash\ngit stash apply\n```\n\n### Rebasing\n\nTo rebase your current branch onto another branch:\n```bash\ngit rebase \u003cbranch-name\u003e\n```\n\nTo pickup, squash, or reset your commmits :\n\n```\ngit rebase HEAD~\u003cNo of Commits\u003e -i\n\n## force push\n\ngit push --force\n```\n\n## Best Practices\n\n- Commit often with meaningful messages.\n- Use branches for new features or bug fixes.\n- Keep your branch history clean by rebasing and squashing commits.\n- Regularly push your changes to remote repositories.\n- Review code and collaborate using pull requests.\n\n## Resources\n\n- [Pro Git Book](https://git-scm.com/book/en/v2)\n- [Atlassian Git Tutorials](https://www.atlassian.com/git/tutorials)\n- [GitHub Learning Lab](https://lab.github.com/)\n\n## Q\u0026A\n\nFeel free to ask any questions during the workshop. Happy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonichigo%2Fgit-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonichigo%2Fgit-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonichigo%2Fgit-workshop/lists"}