{"id":24485463,"url":"https://github.com/honeybunnysidd/git__github-commands","last_synced_at":"2026-04-29T14:38:51.809Z","repository":{"id":260832355,"uuid":"872718567","full_name":"honeybunnysidd/Git__Github-Commands","owner":"honeybunnysidd","description":"Git \u0026 Github Command.","archived":false,"fork":false,"pushed_at":"2025-02-13T10:30:57.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-13T10:31:09.672Z","etag":null,"topics":["commands","git","github"],"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/honeybunnysidd.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-10-15T00:24:08.000Z","updated_at":"2025-02-13T10:31:00.000Z","dependencies_parsed_at":"2024-11-02T22:23:37.447Z","dependency_job_id":"ad723a20-69da-40c2-8a2c-b1d0bbdbe954","html_url":"https://github.com/honeybunnysidd/Git__Github-Commands","commit_stats":null,"previous_names":["honeybunnysidd/git__github-commands"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honeybunnysidd%2FGit__Github-Commands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honeybunnysidd%2FGit__Github-Commands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honeybunnysidd%2FGit__Github-Commands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honeybunnysidd%2FGit__Github-Commands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/honeybunnysidd","download_url":"https://codeload.github.com/honeybunnysidd/Git__Github-Commands/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243652701,"owners_count":20325607,"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":["commands","git","github"],"created_at":"2025-01-21T14:18:28.069Z","updated_at":"2026-04-29T14:38:51.774Z","avatar_url":"https://github.com/honeybunnysidd.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git \u0026 Github Command \n\n## Global To Local \n    Clone any repo          -\u003e git clone (repo https link)\n    Show all files(hidden)  -\u003e ls -a\n    untracked files(U) || modified file (M)\n    Check file status       -\u003e git status\n    Add file                -\u003e git add fileName || Add all file -\u003e git add . \n    commit file             -\u003e git commit -m \"(add massage)\"\n    push to local to global -\u003e git push origin main\n\n## Local To Global\n    Create folder and push repo\n\n    git init                -\u003e used to create trackable git repo\n    git add fileName        -\u003e Add file || Add all file -\u003e git add . \n    git commit -am \"msg\"    -\u003e add \u0026 commit (modified)\n    git remote add origin (repo link)\n    git remote -v           -\u003e check remote\n    git branch              -\u003e check branch\n    git push origin main    -\u003e push local to global\n    \n## Git Branches\n    git branch                          -\u003e check branch\n    git branch -M branchName            -\u003e rename branch\n    git checkout (branch name)          -\u003e to navigate (change branch)\n    git checkout -b (new branch name)   -\u003e create new branch\n    git branch -d (branch name)         -\u003e delete branch\n\n## Git Merging code\n    git diff (branch name)      -\u003e to compare commits,branches,files \u0026 more\n    git merge (branch name)     -\u003e to merge 2 branches\n\n## Pull Request\n    git pull origin main -\u003e pull global to local\n\n## Fixing Mistakes\n    git reset (file name) || git reset  -\u003e staged changes ( back one stage 'git add' ka)\n    git reset HEAD~1                    -\u003e commited changes (back one commite 'git commit' ka)\n    git log                             -\u003e commit records with hash code\n    git reset (commit hash)             -\u003e commited changes (for many commits )\n    git reset --hard (commit hash)      -\u003e commited changes (for many commits remove code )\n\n## Create a pull request on other github account\n    Github---------------\n    click fork                    -\u003e fork repository\n    copy link                     -\u003e copy fork repo link \n    terminal-------------\n    mkdir folder_name             -\u003e create folder\n    cd folder_name                -\u003e open folder\n    git clone \u003crepo-link\u003e         -\u003e clone repository \n    cd repo                       -\u003e open repository\n    file exploral -------\n    copy folder                   -\u003e copy project folder \n    paste repo folder             -\u003e paste project in repository\n    terminal-------------\n    git status                    -\u003e check status\t(show untracked)\n    git add .                     -\u003e add file or folder\n    git commit -m \"add file\"      -\u003e commit file or folder\n    git push origin branch_name   -\u003e push local to global\n    github---------------\n    refresh github account \t\t\n    open repo\n    click Pull requests\n    click New pull request\n    select branch_name \n    click Create pull request\n    type Some message\n    click Create pull request\n\n## Terminal \n\n    List files               -\u003e ls (Show files)\n    Print Working Directory  -\u003e pwd (Current directory, Where am I)\n    Change directory         -\u003e cd (file name)\n    Back Button              -\u003e cd..\n    Outside directory        -\u003e cd /\n    Home directory           -\u003e cd ~\n    Make directory           -\u003e mkdir folderName (make folder)\n    Delete Empty folder      -\u003e rmdir folderName\n    Create file              -\u003e touch app.js (New file with extension)\n    Delete files             -\u003e rm app.js\n\n    //With Flags\n\n    List files               -\u003e ls -a (Show hidden files)\n    Remove file forcefully   -\u003e rm -rf fileName (rf = recursive force -delete folder that contain data)\n    \n\n# Coder\nSiddhartha Raghuvanshi\n\n## Thank you for Visit...","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoneybunnysidd%2Fgit__github-commands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoneybunnysidd%2Fgit__github-commands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoneybunnysidd%2Fgit__github-commands/lists"}