{"id":20229878,"url":"https://github.com/dominic-g/git-command-simplifier","last_synced_at":"2025-03-03T13:25:42.165Z","repository":{"id":186420499,"uuid":"675015257","full_name":"dominic-g/git-command-simplifier","owner":"dominic-g","description":"Simplify Git interactions by reducing token and username typing in common operations.","archived":false,"fork":false,"pushed_at":"2023-08-09T13:33:51.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T00:14:21.710Z","etag":null,"topics":["git","git-repository"],"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/dominic-g.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-08-05T13:49:34.000Z","updated_at":"2023-08-05T23:26:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"de3bf884-41af-451a-b598-ad7ea2907c78","html_url":"https://github.com/dominic-g/git-command-simplifier","commit_stats":null,"previous_names":["dominic-g/git-command-simplifier"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominic-g%2Fgit-command-simplifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominic-g%2Fgit-command-simplifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominic-g%2Fgit-command-simplifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dominic-g%2Fgit-command-simplifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dominic-g","download_url":"https://codeload.github.com/dominic-g/git-command-simplifier/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241671688,"owners_count":20000652,"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":["git","git-repository"],"created_at":"2024-11-14T07:37:20.745Z","updated_at":"2025-03-03T13:25:42.140Z","avatar_url":"https://github.com/dominic-g.png","language":"Shell","readme":"# Git Command Simplifier\n\nThis program provides a streamlined approach to interacting with Git repositories, reducing the need for repetitive typing of tokens and usernames during common Git operations. By utilizing this program, you can save time and enhance your development workflow.\n\n## Features\n\n1. **Efficient Commit and Push:**\n\n   Instead of the usual sequence of commands:\n   \n```\ngit add .\ngit commit -m \"commit message\"\ngit push\n```\n\nYou can simply use:\n\n```bash\npush \"commit message\" (optional)\n```\n\nif the commit message you are using has no spaces ie its one word, then there is no need for quotes you can type\n\n```\npush commit\n```\n\nIf you are in a hurry and do not want to keep writing the commit message just type\n\n```\npush\n```\n\nand the program will write the files affected and timestamp.\n\nIf the files edited, created and deleted are many,\nthe message will be clipped at 72 characters to meet [github commit message length requirement](https://www.gitkraken.com/learn/git/best-practices/git-commit-message#git-commit-message-structure).\n\n**Note:** **__Kindly use a helpful commit message to help your team track the changes.__**\n**__This feature is only added for when there is time limitations, otherwise try and use helpful commit messages.__**\n\n2. **Cloning Repositories:**\n\nInstead of writing:\n\n```bash\ngit clone https://{token}@github.com/{username}/{repository}\n```\n\nYou can use:\n\n```bash\nclone repository_name\n```\n\n3. **Pulling Changes:**\n\nReplace ``` `git pull` ``` with:\n\n```\npull\n```\n\n4. **Easy Token and Username Update:**\n\nTo update your token and username for different accounts/repositories, simply run:\n\n```\ngithub_token\n```\n\nThis command will prompt you to enter the new token and username, making it easy to switch between different credentials.\n\n## Installation\n\n1. Clone the repository or download the files.\n\n2. Navigate to the repository directory.\n\n3. Ensure `install.sh` \u0026 `common_github.sh` scripts are executable if not run:\n\n```\nchmod +x install.sh common_github.sh\n```\n\nIf you get the following error or similar messgae while running the script\n\n```\nbash: ./install.sh: Permission denied\n```\n**DO NOT** run it with super user access ~~`su`~~ just run the command above to make it executable\n\n4. Install the `expect` package (if not already installed):\n\n```\nsudo apt-get install expect -y\n```\n\n5. Run the installation script:\n\n```\n./install.sh\n```\n\nIf the installation fails due to permissions, ensure the scripts \\(~install.sh~ \u0026 ~common_github.sh~\\) are executable as mentioned in step 3.\n\n**__NOTE:__** \n   1. You will be required to provide your github token if you haven't created one [see how to create a new token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens). \n\n   2. You need to give your github username as it appears on your link eg `https://github.com/user-name` the username should be `user-name`\n\n   3. For the Git config username and emails are used when commiting changes to display who made the changes. \n   **The config email and username are stored as global values and can be changed by running the `github_token` command input the token, username again and give different values for the config**\n\n   **__All the information asked are stored on the local machine and are not transmitted over the internet and are ONLY accessed by the local machine.__**\n\n## Usage\n\nOnce installed, you can start using the simplified commands immediately:\n\n- Push changes:\n\n```\npush \"commit message\" (optional)\n```\n\n- Clone a repository:\n\n```\nclone repository_name\n```\n\n- Pull changes:\n\n```\npull\n```\n\n- Update token and username:\n\n```\ngithub_token\n```\n\n## Benefits\n\nBy using the Git Command Simplifier, you'll experience:\n\n- Reduced development time by eliminating repetitive token and username entries.\n- Enhanced security as your details are stored safely.\n- Quick switching between different accounts and repositories.\n\nFeel free to tailor this tool to your workflow and enjoy a more efficient Git experience!\n\n---\n\n**Note:** This tool requires the `expect` package. If you encounter issues during installation or usage, ensure that `expect` is properly installed.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominic-g%2Fgit-command-simplifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdominic-g%2Fgit-command-simplifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdominic-g%2Fgit-command-simplifier/lists"}