{"id":27160943,"url":"https://github.com/nikitimi/git-commands-onboarding","last_synced_at":"2025-06-19T00:03:00.380Z","repository":{"id":271688844,"uuid":"914257703","full_name":"nikitimi/git-commands-onboarding","owner":"nikitimi","description":"Git Commands tutorial, familarity","archived":false,"fork":false,"pushed_at":"2025-01-09T09:03:42.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-09T00:08:10.749Z","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/nikitimi.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":"2025-01-09T08:49:24.000Z","updated_at":"2025-01-09T09:03:46.000Z","dependencies_parsed_at":"2025-01-09T10:20:30.415Z","dependency_job_id":"701c5b77-6d56-40b0-9291-d9b900d91ac1","html_url":"https://github.com/nikitimi/git-commands-onboarding","commit_stats":null,"previous_names":["nikitimi/git-commands-onboarding"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nikitimi/git-commands-onboarding","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitimi%2Fgit-commands-onboarding","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitimi%2Fgit-commands-onboarding/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitimi%2Fgit-commands-onboarding/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitimi%2Fgit-commands-onboarding/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikitimi","download_url":"https://codeload.github.com/nikitimi/git-commands-onboarding/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikitimi%2Fgit-commands-onboarding/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260654616,"owners_count":23042670,"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":"2025-04-09T00:08:19.489Z","updated_at":"2025-06-19T00:02:55.363Z","avatar_url":"https://github.com/nikitimi.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Welcome to git-commands-onboarding\r\n\r\nTo copy this repository in your machine, I assume you've installed [`Git`](https://git-scm.com/downloads), you'll also need to login to your Remote Git Provider e.g. ([GitHub](https://github.com), [GitLab](https://gitlab.com/), [Azure DevOps](https://dev.azure.com/), etc.) if you want to clone private repository in your machine, or if you want to push your local git repository in your chosen Remote Git Provider, you can do this by running this in your terminal:\r\n\r\n```bash\r\n    gh auth login\r\n```\r\n\r\nAfter successful login, you may access your remote Git Repository in your local machine.\r\n\r\n| Table of contents                        |\r\n| ---------------------------------------- |\r\n| [Git Remotely](#git-remotely)            |\r\n| [Git Locally](#git-locally)              |\r\n| [Git Actual Applications](#git-actually) |\r\n\r\n---\r\n\r\n## Git Remotely\r\n\r\nClone Remote repository to your machine:\r\n\r\n```bash\r\n    git clone \u003cHTTPS/SSH_ORIGIN\u003e\r\n```\r\n\r\nPushing local Git to remote:\r\n\r\nFirst and foremost you need to initialize a target origin to push through:\r\n\r\n```bash\r\n    git remote add origin \u003cHTTPS/SSH_ORIGIN\u003e\r\n```\r\n\r\nNew branch _(not yet existing in Remote Git Provider)_:\r\n\r\n```bash\r\n    git push --set-upstream origin \u003cBRANCH_NAME_YOU_WANT_TO_PUSH\u003e\r\n```\r\n\r\nExisting branch in Remote Git Provider:\r\n\r\n```bash\r\n    git push origin \u003cBRANCH_NAME_YOU_WANT_TO_PUSH\u003e\r\n```\r\n\r\nOr if you are in the branch that you want to push you can omit origin and branch name:\r\n\r\n```bash\r\n    git push\r\n```\r\n\r\n---\r\n\r\n## Git Locally\r\n\r\nNo Git repository is possible without this command, behold!:\r\n\r\n```bash\r\n    git init\r\n```\r\n\r\nAdd local changes like new file, new line in a file, basically everythin new in you local git repository:\r\n\r\n```bash\r\n    git add \u003cNEW_FILE\u003e\r\n```\r\n\r\nDon't forget the file extension! nyahahaha.\r\n\r\nYou can also add all changes with one `Git` command with the power of DOT! which targets the current directory:\r\n\r\n```bash\r\n    git add .\r\n```\r\n\r\nUsing the add command in `Git` is like passengers taking a seat inside a Jeepney, which means you can also exclude file you don't want to be added in your local `Git` by the opposite of add, which is:\r\n\r\n```bash\r\n    git rm \u003cSUSPECT_FILE!\u003e\r\n```\r\n\r\nOr all suspect files!:\r\n\r\n```bash\r\n    git rm .\r\n```\r\n\r\nSuspect? Err... I mean unwanted files.\r\n\r\nAfter adding files and you're confident in your changes, you are not yet done, you need the power of:\r\n\r\n```bash\r\n    git commit -m \u003cMESSAGE_HERE\u003e\r\n```\r\n\r\nYou can now view your commit history in your terminal by running:\r\n\r\n```bash\r\n    git log --pretty=\"oneline\"\r\n```\r\n\r\nYou can then check your current branch with:\r\n\r\n```bash\r\n    git branch\r\n```\r\n\r\nOr to view all branch:\r\n\r\n```bash\r\n    git branch -a\r\n```\r\n\r\nIf you want to push to your chosen Remote Git Provider go [here](#git-remotely).\r\n\r\n---\r\n\r\n## Git Actually\r\n\r\nThis section provides the actual example of git commands in action:\r\n\r\n**Adding**\r\n\r\n```bash\r\n    git add text.txt\r\n```\r\n\r\n```bash\r\n    git add .\r\n```\r\n\r\n**Removing**\r\n\r\n```bash\r\n    git rm text.txt\r\n```\r\n\r\n```bash\r\n    git rm .\r\n```\r\n\r\n**Cloning**\r\n\r\n_HTTPS_:\r\n\r\n```bash\r\n    git clone https://github.com/nikitimi/git-commands-onboarding.git\r\n```\r\n\r\n_SSH_:\r\n\r\n```bash\r\n    git clone git@github.com:nikitimi/git-commands-onboarding.git\r\n```\r\n\r\n**Adding Remote Origin**:\r\n\r\n```bash\r\n    git remote add origin git@github.com:nikitimi/git-commands-onboarding.git\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitimi%2Fgit-commands-onboarding","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikitimi%2Fgit-commands-onboarding","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikitimi%2Fgit-commands-onboarding/lists"}