{"id":16430227,"url":"https://github.com/rohya8/githubcommands","last_synced_at":"2025-08-21T10:18:08.945Z","repository":{"id":101907414,"uuid":"294128403","full_name":"rohya8/GithubCommands","owner":"rohya8","description":"Most useful Git commands you'll need to know to use Git, plus examples of using each one.","archived":false,"fork":false,"pushed_at":"2020-09-23T12:39:49.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T08:18:44.005Z","etag":null,"topics":["cheatsheet","git","git-handbook","git101","gitbook","gitcommands"],"latest_commit_sha":null,"homepage":"","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/rohya8.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}},"created_at":"2020-09-09T13:55:35.000Z","updated_at":"2020-09-23T12:39:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"346365f3-9404-4036-a309-f7da7828a641","html_url":"https://github.com/rohya8/GithubCommands","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rohya8/GithubCommands","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohya8%2FGithubCommands","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohya8%2FGithubCommands/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohya8%2FGithubCommands/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohya8%2FGithubCommands/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rohya8","download_url":"https://codeload.github.com/rohya8/GithubCommands/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rohya8%2FGithubCommands/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271462097,"owners_count":24763860,"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-08-21T02:00:08.990Z","response_time":74,"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":["cheatsheet","git","git-handbook","git101","gitbook","gitcommands"],"created_at":"2024-10-11T08:26:08.647Z","updated_at":"2025-08-21T10:18:08.923Z","avatar_url":"https://github.com/rohya8.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\n### Useful Github Commands for development.\n\n- Git is a distributed version-control system for tracking changes in source code during software development.\n- It is designed for coordinating work among programmers, but it can be used to track changes in any set of files.\n\n#### Commands\n\n+ git config =\u003e sets the author name and email address respectively to be used with your commits\n    ```sh\n    $ git config –global user.name “\u003cname\u003e”\n    $ git config –global user.email “\u003cemail-address\u003e”\n    ```\n    \n+ git init  =\u003e  turns a directory into an empty Git repository\n    ```sh\n    $ git init\n    ```    \n    \n+ git add  =\u003e Adds files in the to the staging area for git\n  There are different ways to use git add \n    - To add a single file\n     ```sh\n     $ git add \u003cfile\u003e\n     ```   \n     - To add everything at once\n     ```sh\n     $ git add -A / git add .\n     ``` \n     \n+ git commit =\u003e is like setting a checkpoint in the development process with a short message to explain what you have developed or changed in the source code\n    ```sh\n    $ git commit -m \"message\"\n    ```\n     ` [` git commit saves your changes only locally `] `    \n     \n+ git remote add =\u003e connects your local repository to the remote server\n    ```sh\n    $ git remote add \u003cvariable name\u003e \u003cremote server link\u003e\n    ```\n    \n+ git push =\u003e sends the committed changes to your remote repository\n    ```sh\n    $ git push \u003cremote\u003e \u003cbranch-name\u003e\n    ```\n    ` [` git push only uploads changes that are committed `] `  \n    \n+ git pull =\u003e fetches and merges changes on the remote server to your working directory\n    ```sh\n    $ git pull \u003crepository-link\u003e\n    ```    \n    \n+ git status =\u003e lists all the files that have to be committed\n    ```sh\n    $ git status\n    ```  \n    \n+ git diff =\u003e shows the file differences which are not yet staged\n    ```sh\n    $ git diff\n    ```  \n    \n+ git checkout =\u003e mostly used for switching from one branch to another. We can also use it for checking out files and commits\n    ```sh\n    $ git checkout \u003cname-of-your-branch\u003e\n    ```\n    - To create and switch to a branch at the same time\n    ```sh\n    $ git checkout -b \u003cname-of-your-branch\u003e\n    ```\n    ` [` -b stands for branch `] `    \n\n+ git log =\u003e lists the version history for the current branch\n    ```sh\n    $ git log\n    ```\n    - for detailed changes \n    ```sh\n    $ git log --summary\n    ```    \n    \n#### Reference Links\n\n* [Git Handbook]\n* [DZone]\n\n[Git Handbook]: https://guides.github.com/introduction/git-handbook/\n[DZone]: https://dzone.com/articles/top-20-git-commands-with-examples\n\n**if you want to contribute to the project,create a pull request**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohya8%2Fgithubcommands","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frohya8%2Fgithubcommands","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frohya8%2Fgithubcommands/lists"}