{"id":26123361,"url":"https://github.com/devgametools/github_practice","last_synced_at":"2026-03-07T23:03:09.757Z","repository":{"id":275612085,"uuid":"926577893","full_name":"Devgametools/github_practice","owner":"Devgametools","description":"PRACTICE OF GITHUB COMMANDS","archived":false,"fork":false,"pushed_at":"2025-02-10T13:57:42.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-19T20:59:30.659Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Devgametools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-03T14:03:37.000Z","updated_at":"2025-02-10T13:57:45.000Z","dependencies_parsed_at":"2025-10-19T12:36:05.328Z","dependency_job_id":null,"html_url":"https://github.com/Devgametools/github_practice","commit_stats":null,"previous_names":["robertbass/github_practice","devgametools/github_practice"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Devgametools/github_practice","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devgametools%2Fgithub_practice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devgametools%2Fgithub_practice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devgametools%2Fgithub_practice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devgametools%2Fgithub_practice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Devgametools","download_url":"https://codeload.github.com/Devgametools/github_practice/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devgametools%2Fgithub_practice/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30236052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"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-03-10T15:53:01.375Z","updated_at":"2026-03-07T23:03:09.742Z","avatar_url":"https://github.com/Devgametools.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# **GIT - GITHUB**\n\n## Local Repositories\n\n### Basic Commands\n\n- #### git --help\n\nShows the help menu.\n\n```bash\ngit --help\n```\n\n- #### git init\n\nInitializes a git repository.\n\n```bash\ngit init\n```\n\n- #### git config\n\nConfigures git.\n\n```bash\ngit config --global user.name \"Your Name\"\ngit config --global user.email \"your@email.com\"\n```\n\n- #### git status\n\nShows the status of the repository.\n\n```bash\ngit status\n```\n\n- #### git add\n\nAdds a file to the staging area.\n\n```bash\ngit add \u003cfile\u003e\ngit add * # Adds all files\ngit add . # Adds all files includind hidden files as .gitignore\n```\n\n- #### git rm\n\nRemoves a file from the staging area.\n\n```bash\ngit rm --cached \u003cfile\u003e\n```\n\n- #### git commit\n\nCommits the staged changes.\n\n```bash\ngit commit -m \"Commit message\"\ngit commit -am \"Commit message\" # Add and commit changes\n```\n\n- #### git log\n\nShows the commit history.\n\n```bash\ngit log\ngit log main..origin/main # Shows the commit history between the main branch and the origin/main branch\n```\n\n### Advanced Commands\n\n- #### git branch\n\nCreates a new branch.\n\n```bash\ngit branch # Shows the current branch\ngit branch \u003cbranch-name\u003e # Creates a new branch\ngit branch -D \u003cbranch-name\u003e # Deletes a branch\n```\n\n- #### git checkout or git switch\n\nSwitches to a branch.\n\n```bash\ngit checkout \u003cbranch\u003e\ngit switch \u003cbranch\u003e\n```\n\n- #### git checkout (Certain commit)\n\nSwitches to a certain commit to make changes for testing.\n\n```bash\ngit checkout \u003ccommit Identifier\u003e\ngit checkout -b \u003cbranch\u003e \u003ccommit Identifier\u003e # Creates a new branch\ngit checkout main # Switches to the main branch\n```\n\n- #### git merge\n\nMerges a branch into the current branch.\n\n```bash\ngit merge \u003cbranch\u003e\ngit merge origin/main # Merges the origin/main branch into the current branch\n```\n\n- #### git rebase\n\nRebases a branch into another branch.\n\n- #### git revert\n\nReverts a commit.\n\n```bash\ngit revert \u003ccommit Identifier\u003e\n```\n\n- #### git reset\n\nResets the current branch to a previous commit.\n\n```bash\ngit reset --soft \u003ccommit Identifier\u003e # Soft reset\ngit reset --mixed \u003ccommit Identifier\u003e # Mixed reset\ngit reset --hard \u003ccommit Identifier\u003e # Hard reset\n```\n\n- #### git stash\n\nStashes the current changes.\n\n- #### git tag\n\nTags a commit.\n\n```bash\ngit tag -a \u003ctag-name\u003e -m \"Tag message\" # Creates a tag\ngit tag \u003ctag-name\u003e # Creates a tag\ngit show \u003ctag-name\u003e # Shows the commit associated with a tag\ngit tag -d \u003ctag-name\u003e # Deletes a tag\n```\n\n- #### git reflog\n\nShows the commit history.\n\n## Remote Repositories\n\n### Remote Basic Commands\n\n- #### create ssh key\n\n```bash\nssh-keygen -t rsa -b 4096 -C \"your@email.com\" # Creates an rsa key\nssh-keygen -t ed25519 -C \"your@email.com\"  # Creates an ed25519 key\neval \"$(ssh-agent -s)\" # Evaluates the ssh key\nssh-add ~/.ssh/id_rsa # Adds the key to the ssh-agent\nssh -T git@github.com # Tests the connection\n```\n\n- #### git remote\n\nManages remote repositories.\n\n```bash\ngit remote add origin \u003curl\u003e\n```\n\n- #### git clone\n\nClones a repository.\n\n```bash\ngit clone \u003curl\u003e\n```\n\n- #### git push\n\nPushes the commits to the remote repository.\n\n```bash\ngit push origin \u003cbranch\u003e\n```\n\n- #### git pull\n\nPulls the commits from the remote repository.\n\n```bash\ngit pull origin \u003cbranch\u003e\n```\n\n- ##### git fetch\n\nFetches the commits from the remote repository.\n\n```bash\ngit fetch origin \u003cbranch\u003e\n```\n\n### Working with Branches\n\n- #### git diff\n\nShows the differences between the current state and the last commit.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgametools%2Fgithub_practice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevgametools%2Fgithub_practice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevgametools%2Fgithub_practice/lists"}