{"id":20846357,"url":"https://github.com/sumitesh9/git-demo","last_synced_at":"2025-09-07T05:38:33.243Z","repository":{"id":49567620,"uuid":"376764304","full_name":"sumitesh9/git-demo","owner":"sumitesh9","description":null,"archived":false,"fork":false,"pushed_at":"2021-06-14T10:54:02.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T05:09:26.029Z","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/sumitesh9.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}},"created_at":"2021-06-14T09:07:29.000Z","updated_at":"2021-06-14T10:54:05.000Z","dependencies_parsed_at":"2022-09-14T15:31:01.779Z","dependency_job_id":null,"html_url":"https://github.com/sumitesh9/git-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumitesh9%2Fgit-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumitesh9%2Fgit-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumitesh9%2Fgit-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumitesh9%2Fgit-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumitesh9","download_url":"https://codeload.github.com/sumitesh9/git-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243207833,"owners_count":20253931,"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":[],"created_at":"2024-11-18T02:15:53.088Z","updated_at":"2025-03-12T11:27:49.837Z","avatar_url":"https://github.com/sumitesh9.png","language":null,"readme":"### Git commands and their explanation\n\n1. `git clone` - Clone a repository to local machine\n1. `git init` - Initialise a git repository\n1. `git status` - Check status of the repository\n1. `git checkout -b branchname` - Create a new branch \n1. `git add filename` - Add a file to staging area\n1. `git add .` - Add all files to staging area\n1. `git commit -m Message` - Save the changes made\n1. `git merge branchName` - Merge current active branch to branchName\n1. `git push origin branchName` - Push to remote repository\n1. `git pull` - Pull from remote repository to local repository\n1. `git log` - View the commit history\n1. `git rm` - Remove files from staging area\n1. `git tag commitID` - Give tag to commitID\n1. `git remove add variableName RemoteServerURL` - Connect local repository to remote server\n1. `git remote add origin url` - Adds remote origin to local repo\n1. `git diff commitId1 commitId2` - Compare both the commits\n1. `git show commitID` - Shows metadata and changes in the commit ","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumitesh9%2Fgit-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumitesh9%2Fgit-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumitesh9%2Fgit-demo/lists"}