{"id":23031851,"url":"https://github.com/rookiemonkey/git-cheat","last_synced_at":"2026-05-06T20:33:38.899Z","repository":{"id":158000413,"uuid":"323056611","full_name":"rookiemonkey/git-cheat","owner":"rookiemonkey","description":"bash scripts of shortened git commands grouped depending on their use cases","archived":false,"fork":false,"pushed_at":"2020-12-21T00:23:50.000Z","size":6,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-08T12:12:55.446Z","etag":null,"topics":["cheat","cheatsheet","cli","git","github","open-source","shell","shell-scripting"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/rookiemonkey.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":"2020-12-20T11:32:11.000Z","updated_at":"2023-02-17T00:01:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"959f0fc0-f0b1-4fa0-9150-0d37a8e2f0ca","html_url":"https://github.com/rookiemonkey/git-cheat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rookiemonkey%2Fgit-cheat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rookiemonkey%2Fgit-cheat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rookiemonkey%2Fgit-cheat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rookiemonkey%2Fgit-cheat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rookiemonkey","download_url":"https://codeload.github.com/rookiemonkey/git-cheat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246899617,"owners_count":20851893,"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":["cheat","cheatsheet","cli","git","github","open-source","shell","shell-scripting"],"created_at":"2024-12-15T15:47:19.570Z","updated_at":"2025-10-14T12:06:18.589Z","avatar_url":"https://github.com/rookiemonkey.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GIT-CHEAT!\n\nBecause of my boredom this afternoon, I decided to create some bash scripts to to shorten some github commands and group them depending on their common use cases :)\n\n\u003cbr/\u003e\n\n## WARNING\n\u003cb\u003edo this at your own risk!\u003c/b\u003e Bash files are needed to be copied/moved in ```/usr/bin``` so we can execute it anywhere in our machine. ```usr/bin``` contains binary executable files used by some of your programs. PLEASE BE CAREFUL!\n\nThese bash scripts doesn't handle error that good yet eg: scenarios like not passing enough parameters :)\n\n\u003cbr/\u003e\n\n## AUTO-IMPORT\n\n#### NOTE: you can change the destination file on import.sh, however, please be aware that you also need to modify the $PATH variable\n\n1. execute the import.sh\n\n```$ ./import.sh```\n\n\u003cbr/\u003e\n\n## AVAILABLE COMMANDS\n\n* ```$ glog```\n    * short-hand for git log with  nice format\n    * PARAMS:\n        * \u003ci\u003eno parameter\u003c/i\u003e\n        \n\u003c/br\u003e\n\n* ```$ gbadd arg1```\n    * creates a new branch switch to it\n    * lists all the branches available upon creating a new one\n    * PARAMS:\n        * \u003ci\u003earg1\u003c/i\u003e is a branchname to be created\n        \n\u003c/br\u003e\n\n* ```$ gbrem arg1```\n    * removes a given branch\n    * lists all the branches available upon removing one\n    * PARAMS:\n        * \u003ci\u003earg1\u003c/i\u003e is a branchname to be removed\n   \n\u003c/br\u003e\n   \n* ```$ gbstash arg1```\n    * stashes the current changes on the current branch\n    * then applies the changes to the given branch\n    * PARAMS:\n        * \u003ci\u003earg1\u003c/i\u003e is a branchname to apply the stashed changes\n        \n\u003c/br\u003e\n   \n* ```$ gbswitch arg1```\n    * switches to the given branch\n    * PARAMS:\n        * \u003ci\u003earg1\u003c/i\u003e is a branchname to use\n        \n\u003c/br\u003e\n   \n* ```$ gbupdate arg1```\n    * update a branch based on master branch\n    * PARAMS:\n        * \u003ci\u003earg1\u003c/i\u003e is a branchname to update\n        \n\u003c/br\u003e\n   \n* ```$ ginit```\n    * short-hand for git init\n    * PARAMS:\n        * \u003ci\u003eno parameter\u003c/i\u003e\n        \n\u003c/br\u003e\n   \n* ```$ gpbranch arg1 arg2```\n    * add all, commit, then push to the given branch name\n    * PARAMS:\n        * \u003ci\u003earg1\u003c/i\u003e is a branchname to push to\n        * \u003ci\u003earg2\u003c/i\u003e is a comment enclosed inside \"\"\n        \n\u003c/br\u003e\n   \n* ```$ gpmaster arg1```\n    * add all, commit, then push to the master branch\n    * PARAMS:\n        * \u003ci\u003earg1\u003c/i\u003e is a comment enclosed inside \"\"\n        \n\u003c/br\u003e\n   \n* ```$ gradd arg1 arg2```\n    * adds a remote repository\n    * PARAMS:\n        * \u003ci\u003earg1\u003c/i\u003e is a remote repository name (eg: origin)\n        * \u003ci\u003earg2\u003c/i\u003e is a remote repository url (eg: git@github.com:username/sample.git)\n        \n\u003c/br\u003e\n   \n* ```$ grrem arg1```\n    * removes a remote repository\n    * PARAMS:\n        * \u003ci\u003earg1\u003c/i\u003e is a remote repository name (eg: origin)\n        \n\u003c/br\u003e\n   \n* ```$ gstatus```\n    * short-hand for git status\n    * PARAMS:\n        * \u003ci\u003eno parameter\u003c/i\u003e\n        \n\n\u003c/br\u003e\n\n## ADDING A NEW BASH FILE\n\n#### NOTE: these scripts uses bash as interpreter\n\n1. create a shell file (filename.sh) inside the dir ```./src```\n\n```$ touch ./src/filename.sh```\n\n2. modify the permissions of the file to be executable\n\n```$ sudo chmod +x ./src/filename.sh```\n\n3. run the auto-importer, exit, and then respawn your terminal\n\n```$ ./import.sh```\n\n4. invoke the bash script using its file name anywhere on your machine.\n\n```$ filename```\n\n\n\u003cbr/\u003e\n\n## Author: \u003ci\u003eKevin Roi R. Basina\u003c/i\u003e\n\u003ca href=\"https://github.com/rookiemonkey\"\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/GitHub-100000?style=for-the-badge\u0026logo=github\u0026logoColor=white\" /\u003e\n\u003c/a\u003e\n\u003ca href=\"https://ph.linkedin.com/in/kevin-roi-rigor-basina-668136185\"\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://www.facebook.com/kevinroibasina\"\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/Facebook-1877F2?style=for-the-badge\u0026logo=facebook\u0026logoColor=white\" /\u003e\n\u003ca\u003e\n\u003ca href=\"https://www.instagram.com/timemachineni_roi/\"\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/Instagram-E4405F?style=for-the-badge\u0026logo=instagram\u0026logoColor=white\"\u003e\n\u003c/a\u003e\n\u003ca href=\"https://twitter.com/tymmchineni_roi\"\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge\u0026logo=twitter\u0026logoColor=white\"\u003e\n\u003c/a\u003e\n\u003ca href=\"mailto: kevinroirigorbasina@protonmail.com\"\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/ProtonMail-8B89CC?style=for-the-badge\u0026logo=protonmail\u0026logoColor=white\"\u003e\n\u003c/a\u003e\n\u003ca href=\"mailto: kevinroirigorbasina@gmail.com\"\u003e\n\t\u003cimg src=\"https://img.shields.io/badge/Gmail-D14836?style=for-the-badge\u0026logo=gmail\u0026logoColor=white\"\u003e\n\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frookiemonkey%2Fgit-cheat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frookiemonkey%2Fgit-cheat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frookiemonkey%2Fgit-cheat/lists"}