{"id":24508585,"url":"https://github.com/adygcode/version-control-basics","last_synced_at":"2026-02-09T16:03:33.254Z","repository":{"id":112776335,"uuid":"419611396","full_name":"AdyGCode/Version-Control-Basics","owner":"AdyGCode","description":"This is a simple repository with git commands (a cheat sheet, maybe)","archived":false,"fork":false,"pushed_at":"2021-10-21T07:22:06.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-02T16:48:23.758Z","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/AdyGCode.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,"zenodo":null}},"created_at":"2021-10-21T06:44:54.000Z","updated_at":"2021-10-21T07:22:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"902aa5b3-306d-41fb-9f98-9056f758a8df","html_url":"https://github.com/AdyGCode/Version-Control-Basics","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AdyGCode/Version-Control-Basics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdyGCode%2FVersion-Control-Basics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdyGCode%2FVersion-Control-Basics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdyGCode%2FVersion-Control-Basics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdyGCode%2FVersion-Control-Basics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdyGCode","download_url":"https://codeload.github.com/AdyGCode/Version-Control-Basics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdyGCode%2FVersion-Control-Basics/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29271860,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T13:47:44.167Z","status":"ssl_error","status_checked_at":"2026-02-09T13:47:43.721Z","response_time":56,"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":"2025-01-22T00:16:57.216Z","updated_at":"2026-02-09T16:03:33.248Z","avatar_url":"https://github.com/AdyGCode.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Version Control (VC) Demo\n\n## Who am I\n\nConfigure git to use your name and email address for commit tracking.\n\nEdit the config file using...\n\n`git config --global --edit`\n\nOr we can do this at the command line:\n\n```shell\ngit config --global user.name \"YOUR NAME\"\ngit config --global user.email \"YOUR EMAIL ADDRESS\"\n```\n\n### Who am I for current project\n```shell\ngit config user.name \"YOUR NAME\"\ngit config user.email \"YOUR EMAIL ADDRESS\"\n```\n\n### Check config gettings\nCheck the settings using `git config --list`\n\n\n## Create a new project for VC\n\n### Create folder for project\n- Get to the location for the project, eg `cd %HOME%` (PC) or `cd ~` on Linux/Mac\n- Make the project folder: `mkdir PROJECT-NAME`\n- Change into the folder: `cd PROJECT-NAME`\n\n### Create ReadMe.md\n- Create a `README.MD` file:\n  - Linux/cmder: `touch ReadMe.md` then `pico ReadMe.md` (use `CTRL`+`X` followed by `y` and `ENTER`)\n  - PC: `notepad ReadMe.md`\n- Add brief outline of project to ReadMe.md\n- Save and Exit editor\n\n### Initialise VC:\n- use `git init` to initialise the repo, then...\n- Rename the \"Master\" branch to *main* using `git branch -M main`\n\n## Showing the Status of the Repo\nUse the command `git status` to see what has been added, deleted, or changed.\n\n## Add file(s) to \"waiting area\"\n\n### Single File:\n`git add FILENAME`\nfor example:\n`git add ReadMe.md`\n\n### Multiple files\nTo add multiple files, list them after the add (spaces between file names)\n\n### Folder\nTo add a complete folder use:\n`git add FOLDER_NAME`\n\n### All files\nTo add everything (apart from ignored files) use:\n`git add .`\n\n## Committing Files to VC\nCommiting files into history/version control:\n\n```shell\ngit commit -m \"COMMIT MESSAGE\"\n```\n\n## Show the change history\n\nUse the command `git show`\n\n\n## Remote Repository on GitHub\n- Go to GitHub, login to your account\n- Locate the + and click to create a new repository\n- This will then show you the commands to add the remote to your repo and push the data up!\n\n```shell\ngit remote add origin https://github.com/AdyGCode/Version-Control-Basics.git\n\ngit branch -M main\n\ngit push -u origin main\n```\n\nIn the future, you will only need to do a `git add`, `git commit` and then `git push` to upload the changes you have made.\n\n## Pulling Changes from Remote\n\nuse `git pull`\n\n\n## Clone a Repo to local machine\n\nUse the command:\n```shell\ngit clone Repository-URL\n```\n\nFor example, to clone this repo to your local machine use:\n\n```shell\ngit clone https://github.com/AdyGCode/Version-Control-Basics.git\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadygcode%2Fversion-control-basics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadygcode%2Fversion-control-basics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadygcode%2Fversion-control-basics/lists"}