{"id":18572850,"url":"https://github.com/joechea-aupp/github_tut","last_synced_at":"2025-04-10T07:31:30.596Z","repository":{"id":184246527,"uuid":"671537822","full_name":"joechea-aupp/github_tut","owner":"joechea-aupp","description":"Github 1️⃣0️⃣1️⃣","archived":false,"fork":false,"pushed_at":"2025-04-10T05:49:04.000Z","size":1798,"stargazers_count":47,"open_issues_count":18,"forks_count":102,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T06:37:44.038Z","etag":null,"topics":["git-branching","git-clone","git-fork","git-merge"],"latest_commit_sha":null,"homepage":"","language":"Python","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/joechea-aupp.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":"2023-07-27T14:45:06.000Z","updated_at":"2025-04-10T05:49:08.000Z","dependencies_parsed_at":"2024-04-11T14:50:37.890Z","dependency_job_id":null,"html_url":"https://github.com/joechea-aupp/github_tut","commit_stats":null,"previous_names":["joechea-aupp/github_tut"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joechea-aupp%2Fgithub_tut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joechea-aupp%2Fgithub_tut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joechea-aupp%2Fgithub_tut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joechea-aupp%2Fgithub_tut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joechea-aupp","download_url":"https://codeload.github.com/joechea-aupp/github_tut/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248176327,"owners_count":21060046,"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-branching","git-clone","git-fork","git-merge"],"created_at":"2024-11-06T23:07:26.053Z","updated_at":"2025-04-10T07:31:30.236Z","avatar_url":"https://github.com/joechea-aupp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub 101\n\nThis guide will help you navigate GitHub with ease.\n\n\u003cbr\u003e\n\n## Setting Up GitHub Desktop\n\n1. Start by downloading and installing the [GitHub Desktop app](https://desktop.github.com/).\n2. Sign in using your GitHub account.\n3. Pick the repository you'd like to work on.\n\n    ![Select Repository](resources/image_2023-07-27_22-06-51.png)\n\n4. Choose a local folder where you'll store the project.\n\n    ![Select Folder](resources/image_2023-07-27_22-06-54.png)\n\n5. Click 'Clone' to download the project to your local folder.\n\n\u003cbr\u003e\n\n## Making Changes and Committing\n\n1. Make any changes you want to the project.\n2. Open the GitHub Desktop app to see the changes you've made.\n\n    ![Observe Changes](resources/image_2023-07-27_22-21-52.png)\n\n3. To save your changes or commit the history, go to the bottom left of the screen, give your change history a title, and click on `commit to main`.\n\n    ![Commit Changes](resources/image_2023-07-27_22-29-22.png)\n\n4. Once you've committed, your changed file will no longer appear in the left menu.\n5. Click `Push origin` to upload your changes to GitHub.\n\n    ![Push Changes](resources/image_2023-07-27_22-30-59.png)\n\n\u003cbr\u003e\n\n## Creating Repositories on GitHub\n\n1. Sign in to your GitHub account on your preferred web browser.\n\n    ![Login](resources/1.png)\n\n2. Click on the `+` button at the top right of the screen and select `New repository`.\n\n    ![New Repository](resources/2.5.png)\n\n3. Give your repository a name and, if you want, add a description.\n\n    ![Name Repository](resources/4.png)\n\n4. Make sure the repository is set to `Public`.\n\n    ![Set Public](resources/5.png)\n\n5. Click on `add a README file` and then `Create repository`.\n\n    ![Create Repository](resources/6.png)\n\n\u003cbr\u003e\n\n## Changing Repository Remote Origin\n\n1. Copy the URL of the new repository you want to switch to.\n\n    ![Copy URL](resources/8.png)\n\n2. Open the repository you want to change from in VS Code and open the terminal.\n\n    ![Open Terminal](resources/9.png)\n\n3. Type `git remote set-url origin \u003cnew repository url\u003e` and press enter.\n\n    ![Set URL](resources/10.png)\n\n4. Add, commit, and push the changes to the new repository using the VS Code UI.\n\n    ![Push Changes](resources/11.png)\n\n\u003cbr\u003e\n\n## Understanding Git in VS Code\n\n- Green vertical lines next to line numbers show incoming updates to the repository.\n\n    ![Incoming Changes](resources/image_2023-07-27_22-35-04.png)\n\n- Blue vertical lines next to line numbers show outgoing updates to the repository. Click on the blue line to see the changes you've made.\n\n    ![Outgoing Changes](resources/image_2023-07-27_23-09-10.png)\n\n\u003cbr\u003e\n\n## Using GitHub Desktop\n\n- Green = data **added** to the repository\n- Red = data **deleted** from the repository\n- Orange = **modified data** in the repository\n\n    ![Color Indicators](resources/image_2023-07-27_23-18-22.png)\n\n\u003cbr\u003e\n\n## Understanding History, Reverting Changes, and Resolving Conflicts\n\n1. In GitHub Desktop, you'll see the history tab to the right of the `Changes` tab. Click on it to see the repository's history.\n\n    ![History](resources/image_2023-07-27_23-25-48.png)\n\n2. To undo changes, right-click on any history you want to revert and click on `Revert changes in commit`.\n\n    ![Revert Changes](resources/image_2023-07-27_23-32-01.png)\n\n3. If your changes affect or are about to overwrite the current content in your project, a prompt to resolve conflicts will appear.\n\n    ![Conflict Prompt](resources/image_2023-07-28_08-26-24.png)\n\n4. Switch to VS Code to resolve the conflict. Files marked as conflicted will have `\u003e\u003e\u003e\u003e\u003e\u003e` and `\u003c\u003c\u003c\u003c\u003c\u003c` in the file and will be colored in red or orange.\n\n    ![Conflict Markers](resources/image_2023-07-28_08-26-31.png)\n\n5. Click on the conflicted file and click on `Resolve in Merge Editor`. The incoming changes will be on the left side and the outgoing changes will be on the right side.\n\n    ![Resolve Conflict](resources/image_2023-07-28_08-29-11.png)\n\n6. Click `Accept Incoming Change` to accept the incoming changes, `Accept Current Change` to accept the outgoing changes, or `Accept Both Changes` to accept both.\n\n7. Click `Complete Merge` to finish the merge.\n\n    ![Complete Merge](resources/image_2023-07-28_08-33-51.png)\n\n\u003cbr\u003e\n\n## Branching\n\nBranching lets you work on different versions of a repository at the same time. By default, your repository has one branch named `main`, which is considered the definitive branch. We use branches to experiment and make edits before committing them to `main`.\n\n1. To create a new branch, click on the `Current Branch` button at the top left of the screen and click on `New Branch`.\n\n    ![New Branch](resources/image_2023-07-28_08-47-02.png)\n\n2. Give your branch a name and click `Create Branch`.\n\n    ![Name Branch](resources/image_2023-07-28_08-48-14.png)\n\n3. Any changes you make on the new branch won't affect the `main` branch.\n\n4. To merge the branch into the `main` branch, click on the `Current Branch` button at the top left of the screen and click on the `main` branch.\n\n    ![Select Main](resources/image_2023-07-28_08-54-17.png)\n\n5. Click on `Choose a branch to merge into main`.\n\n    ![Choose Branch](resources/image_2023-07-28_08-55-17.png)\n\n6. Click on the branch you want to merge and click `Create a merge commit`.\n\n\u003cbr\u003e\n\n## Resources\n\n### VS Code Extensions for GitHub\n\n- [GitHub Pull Requests and Issues](https://marketplace.visualstudio.com/items?itemName=GitHub.vscode-pull-request-github)\n- [GitLens](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens)\n\n### YouTube Tutorials\n\n- [GitHub Desktop Tutorial](https://www.youtube.com/watch?v=8Dd7KRpKeaE)\n- [Git and GitHub Crash Course](https://www.youtube.com/watch?v=tRZGeaHPoaw)\n\n### Additional Sources\n\n- [GitHub Learning Lab](https://github.com/apps/github-learning-lab)\n- [GitHub Docs](https://docs.github.com/en)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoechea-aupp%2Fgithub_tut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoechea-aupp%2Fgithub_tut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoechea-aupp%2Fgithub_tut/lists"}