{"id":20356551,"url":"https://github.com/madhurimarawat/learning-git","last_synced_at":"2026-05-30T18:31:33.055Z","repository":{"id":259464894,"uuid":"844910589","full_name":"madhurimarawat/Learning-Git","owner":"madhurimarawat","description":"A personal repository dedicated to learning and practicing Git commands and workflows. This repository will contain various exercises, projects, and notes aimed at mastering version control with Git.","archived":false,"fork":false,"pushed_at":"2026-01-15T08:19:39.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-15T14:55:37.841Z","etag":null,"topics":["beginner","beginner-friendly","documentation","git","github-cli","learning-by-book","learning-material","python","website"],"latest_commit_sha":null,"homepage":"https://madhurimarawat.github.io/Semester-Notes/Git-Commands.html","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madhurimarawat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-08-20T07:54:24.000Z","updated_at":"2026-01-15T08:19:42.000Z","dependencies_parsed_at":"2024-10-25T18:23:50.885Z","dependency_job_id":"91c2be4d-9014-4a80-a03b-a36118c83d21","html_url":"https://github.com/madhurimarawat/Learning-Git","commit_stats":null,"previous_names":["madhurimarawat/learning-git"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/madhurimarawat/Learning-Git","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FLearning-Git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FLearning-Git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FLearning-Git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FLearning-Git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madhurimarawat","download_url":"https://codeload.github.com/madhurimarawat/Learning-Git/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madhurimarawat%2FLearning-Git/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33705207,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["beginner","beginner-friendly","documentation","git","github-cli","learning-by-book","learning-material","python","website"],"created_at":"2024-11-14T23:17:01.088Z","updated_at":"2026-05-30T18:31:33.049Z","avatar_url":"https://github.com/madhurimarawat.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Learning-Git\n\nA personal repository dedicated to learning and practicing Git commands and workflows. This repository will contain various exercises, projects, and notes aimed at mastering version control with Git.\n\n\u003cimg src =\"https://raw.github.com/nerdgirl/git-cheatsheet-visual/master/gitcheatsheet.png\"\u003e\n\n---\n\n### Command Descriptions for Setting Up a Git Repository\n\n#### GitHub CLI Command\n\n```bash\ngh repo create Learning-Git --private --source=. --remote=origin\n```\n\nThis command uses the GitHub CLI (`gh`) to create a new private repository named `Learning-Git` on GitHub. It uses the current directory (`.`) as the source for the new repository and sets up a remote named `origin`. The repository is available at: https://github.com/madhurimarawat/Learning-Git.\n\n## Git and Directory Setup Commands\n\n```bash\nmkdir Learning-Git\n```\n\nCreates a new directory named `Learning-Git`. This will be the local folder where the Git repository will be initialized.\n\n\n```bash\ncd Learning-Git\n```\n\nChanges the current working directory to `Learning-Git`, so you are inside the folder you just created.\n\n\n```bash\ngit remote add origin https://github.com/username/Learning-Git.git\n```\n\nAdds a remote repository named `origin` that points to the URL `https://github.com/madhurimarawat/Learning-Git.git`. This remote repository will be the location where you can push and pull changes.\n\n\n```bash\ngit branch -M main\n```\n\nRenames the current branch to `main`. The `-M` option forces the renaming even if a branch named `main` already exists.\n\n\n```bash\ngit push -u origin main\n```\n\nPushes the `main` branch to the remote repository `origin`. The `-u` option sets this remote branch as the default upstream branch for future push and pull commands.\n\n\n```bash\ngit remote add origin https://github.com/madhurimarawat/Learning-Git.git\n```\n\nAttempts to add another remote repository named `origin` pointing to `https://github.com/madhurimarawat/Learning-Git.git`. However, this would result in an error if a remote named `origin` already exists. \n\n#### Note\nThe correct repository link is: https://github.com/madhurimarawat/Learning-Git\n\nThe folder name for this project should be `Learning-Git`.\n\n---\n\n## 📬 Stay Connected\n\n- Drop a 🌟 if you find this repository useful.\n- If you have any doubts or suggestions, feel free to reach: \u0026nbsp; [![Linkedin Badge](https://img.shields.io/badge/-madhurima-blue?style=flat\u0026logo=Linkedin\u0026logoColor=white)](https://www.linkedin.com/in/madhurima-rawat/) \u0026nbsp; \u0026nbsp;\n\u003ca href =\"mailto:rawatmadhurima4@gmail.com\"\u003e\u003cimg src=\"https://github.com/madhurimarawat/Machine-Learning-Using-Python/assets/105432776/b6a0873a-e961-42c0-8fbf-ab65828c961a\" height=35 width=30 title=\"Mail Illustration\" alt=\"Mail Illustration📫\" \u003e \u003c/a\u003e\u003cbr\u003e\n\n- **Questions or feedback?**  \n\u0026nbsp; Feel free to open an [issue](https://github.com/madhurimarawat/Learning-Git/issues) or connect via [GitHub Discussions](https://github.com/madhurimarawat/Learning-Git/discussions). I'm happy to help!\u003cbr\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhurimarawat%2Flearning-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadhurimarawat%2Flearning-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadhurimarawat%2Flearning-git/lists"}