{"id":26269656,"url":"https://github.com/samithseu/git-basic","last_synced_at":"2026-04-29T02:42:48.785Z","repository":{"id":280991806,"uuid":"824924727","full_name":"samithseu/git-basic","owner":"samithseu","description":"Git Basic Commands - Commands មូលដ្ឋានសម្រាប់ Git","archived":false,"fork":false,"pushed_at":"2025-06-26T11:36:01.000Z","size":4563,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T23:48:42.352Z","etag":null,"topics":["git","github","html"],"latest_commit_sha":null,"homepage":"","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/samithseu.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":"2024-07-06T09:55:16.000Z","updated_at":"2025-06-26T11:36:04.000Z","dependencies_parsed_at":"2025-03-06T12:35:33.736Z","dependency_job_id":null,"html_url":"https://github.com/samithseu/git-basic","commit_stats":null,"previous_names":["samithseu/git-basic"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/samithseu/git-basic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samithseu%2Fgit-basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samithseu%2Fgit-basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samithseu%2Fgit-basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samithseu%2Fgit-basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samithseu","download_url":"https://codeload.github.com/samithseu/git-basic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samithseu%2Fgit-basic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263066557,"owners_count":23408387,"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","github","html"],"created_at":"2025-03-14T05:15:42.294Z","updated_at":"2026-04-29T02:42:43.743Z","avatar_url":"https://github.com/samithseu.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Basic Commands 🤏\n\n\u003cp align=\"left\"\u003e\n  \u003cspan\u003e\u003cimg height=14 src=\"https://github.com/user-attachments/assets/3cd10117-9624-48fa-b8aa-429382734ede\" alt=\"choosing language\" /\u003e \u003c/span\u003e\n  \u003ca\u003eEnglish\u003c/a\u003e \u0026nbsp; | \u0026nbsp;\n  \u003ca href=\"README_KH.md\"\u003eភាសាខ្មែរ\u003c/a\u003e\n\u003c/p\u003e\n\n## 1. Clone A Remote Repository\n\n### 1.1. From GitHub\n\n```bash\ngit clone [repo_url]\n# Example: git clone https://github.com/samithseu/git-basic.git\n```\n\n### 1.2. From GitLab\n\n```bash\ngit clone [repo_url]\n# Example: git clone https://gitlab.com/vuejs9055841/using-i18n.git\n```\n\n---\n\n## 2. Push From Local To Remote Repository\n\n### 2.1 Initialize a local git repo\n\n```bash\ngit init\n```\n\n### 2.2. Check status\n\n```bash\ngit status\n```\n\n### 2.3 Track files\n\n```bash\ngit add [file_name(s)]\n# Example1: git add index.html style.css\n# Example2: git add . (for adding all new changed files)\n```\n\n### 2.4. Commit files with messages\n\n```bash\ngit commit -m [messages]\n# Example: git commit -m \"initial commit\"\n```\n\n### 2.5. Create and change branch\n\n```bash\ngit branch -M [branch_name]\n# Example: git branch -M main\n```\n\n### 2.6. Add remote repo to a local repo\n\n```bash\ngit remote add [remote_name] [repo_url]\n# Example: git remote add origin https://github.com/samithseu/git-basic\n```\n\n### 2.7. Push to remote repo\n\n```bash\ngit push [remote_name] [branch_name]\n# Example: git push origin main\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamithseu%2Fgit-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamithseu%2Fgit-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamithseu%2Fgit-basic/lists"}