{"id":22990115,"url":"https://github.com/akashdeep023/git_demo","last_synced_at":"2025-09-11T10:42:30.273Z","repository":{"id":192126682,"uuid":"686100409","full_name":"akashdeep023/Git_Demo","owner":"akashdeep023","description":"This is my first repo","archived":false,"fork":false,"pushed_at":"2024-06-09T12:27:01.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T12:17:28.630Z","etag":null,"topics":["command","example","git","github","step-by-step","use-git","use-github"],"latest_commit_sha":null,"homepage":"","language":"HTML","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/akashdeep023.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":"2023-09-01T18:39:13.000Z","updated_at":"2024-06-09T12:27:05.000Z","dependencies_parsed_at":"2023-09-02T19:16:41.442Z","dependency_job_id":"a0368ad6-9a93-4b08-9d6c-c3c24cd54de7","html_url":"https://github.com/akashdeep023/Git_Demo","commit_stats":null,"previous_names":["akashdeep023/git_demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akashdeep023/Git_Demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashdeep023%2FGit_Demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashdeep023%2FGit_Demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashdeep023%2FGit_Demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashdeep023%2FGit_Demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akashdeep023","download_url":"https://codeload.github.com/akashdeep023/Git_Demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akashdeep023%2FGit_Demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267468559,"owners_count":24092335,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["command","example","git","github","step-by-step","use-git","use-github"],"created_at":"2024-12-15T04:32:10.915Z","updated_at":"2025-07-28T05:34:32.983Z","avatar_url":"https://github.com/akashdeep023.png","language":"HTML","readme":"# Git \u0026 Github Command \n\n## Global To Local \n    git clone (repo https link) -\u003e add repository (paste link click mouse right)\n    check list              -\u003e ls \n    open repo               -\u003e cd (file name)\n    create file             -\u003e touch (file name)\n    check file status       -\u003e git status\n    untracked files | modified file etc\n    add file                -\u003e git add (file name) || add all file -\u003e git add . \n    check file status       -\u003e git status\n    commit file             -\u003e git commit -m \"(add massage)\"\n    check file states       -\u003e git status\n    push to local to global -\u003e git push origin main\n    check file states       -\u003e git status\n\n## Local To Global\n    Create folder and push repo\n    cd (folder name)\n    git push origin main\n    git init                -\u003e used to create a new git repo\n    git remote add origin (repo link)\n    git remote -v           -\u003e check remote\n    git branch              -\u003e check branch\n    git branch -M           -\u003e rename branch\n    git push origin main    -\u003e push local to global\n    git commit -am \"msg\"    -\u003e add \u0026 commit (modified)\n    git push -u origin main -\u003e set branch - main , again push enter command -\u003e git push\n    \n## Git Branches\n    git branch                          -\u003e check branch\n    git branch -M                       -\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) ya 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 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## How to create a pull request in 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# Git_Demo\nThis is my first repository..\n# Coder\nAkash Deep \n# Teacher\nSharadha khapara\n\n## Thanks for visit..\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashdeep023%2Fgit_demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakashdeep023%2Fgit_demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakashdeep023%2Fgit_demo/lists"}