{"id":16647949,"url":"https://github.com/xavierchanth/git-command-cheatsheet","last_synced_at":"2026-04-01T21:03:42.328Z","repository":{"id":104741801,"uuid":"243383455","full_name":"XavierChanth/Git-Command-Cheatsheet","owner":"XavierChanth","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-26T23:34:15.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T05:00:15.720Z","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/XavierChanth.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":"2020-02-26T22:57:23.000Z","updated_at":"2021-11-20T00:41:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"1854e5a9-7522-4c6c-a39d-de260b48b8a6","html_url":"https://github.com/XavierChanth/Git-Command-Cheatsheet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/XavierChanth/Git-Command-Cheatsheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XavierChanth%2FGit-Command-Cheatsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XavierChanth%2FGit-Command-Cheatsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XavierChanth%2FGit-Command-Cheatsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XavierChanth%2FGit-Command-Cheatsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/XavierChanth","download_url":"https://codeload.github.com/XavierChanth/Git-Command-Cheatsheet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/XavierChanth%2FGit-Command-Cheatsheet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31013973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T02:58:54.984Z","status":"ssl_error","status_checked_at":"2026-03-27T02:58:46.993Z","response_time":164,"last_error":"SSL_read: 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-12T08:46:13.712Z","updated_at":"2026-03-27T03:22:54.559Z","avatar_url":"https://github.com/XavierChanth.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git \u0026 Github Workshop  \n\n## Install Git  \n\nWindows:  \n\u003e https://git-scm.com/  \n\nLinux:  \n\u003e $ sudo apt install git  \n\nMac:  \n\u003e $ git  \n\n## Create a Github Account  \n\n\u003e https://github.com  \n\n## Student Upgrade  \n\n\u003e https://education.github.com/pack/offers  \n\n## Basic Unix Commands  \n\n### These work in the following command lines  \n\n- Linux  \n- Windows subsystem for linux (wsl)  \n- Git Bash (From installing on windows)  \n- Mac  \n\nMake a new directory:  \n\u003e $ mkdir {directory name}  \n\nList the files in the present working directory:  \n\u003e $ ls  \n\nChange the directory:  \n\u003e $ cd {directory name}  \n\nList the present working directory:  \n\u003e $ pwd  \n\nCreate a file:  \n\u003e $ touch {file name}  \n\n## Git Commands  \n\nInitialize the git repository:  \n\u003e $ git init  \n\nAdd a file to the staging area:  \n\u003e $ git add {file names}  \n\n( . will add all files with a change)  \n(seperate multiple files with spaces)  \n\nCommit these files:  \n\u003e $ git commit -m \"{your commit message}\":  \n\nClone a repository to the present working directory:  \n\u003e $ git clone {repository link}  \n\nShow the current status of the repository:  \n\u003e $ git status  \n\n## Git Config  \n\ngit config --global user.name \"YOUR GITHUB USERNAME\"  \ngit config --global user.email \"GITHUB EMAIL\"  \ngit config --global credential.helper {$}  \n\u003e The \"$\" above can be one of store or cache.  \n\u003e By default it will not cache or store the password.  \n\n## Extras  \n\nFor working in teams learn:  \n\n- git checkout command  \n- github branches  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxavierchanth%2Fgit-command-cheatsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxavierchanth%2Fgit-command-cheatsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxavierchanth%2Fgit-command-cheatsheet/lists"}