{"id":22035096,"url":"https://github.com/yusuflisawi/autogit","last_synced_at":"2025-05-07T19:09:39.831Z","repository":{"id":106875441,"uuid":"602965739","full_name":"YusufLisawi/Autogit","owner":"YusufLisawi","description":"This script provides a simple and convenient way to add, commit, and push changes to a Git repository","archived":false,"fork":false,"pushed_at":"2023-04-19T01:07:28.000Z","size":18,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T19:06:59.391Z","etag":null,"topics":["git"],"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/YusufLisawi.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,"zenodo":null}},"created_at":"2023-02-17T10:26:37.000Z","updated_at":"2023-03-09T18:35:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c7f249e-6458-4af7-a2b0-e3f0efef8eda","html_url":"https://github.com/YusufLisawi/Autogit","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/YusufLisawi%2FAutogit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusufLisawi%2FAutogit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusufLisawi%2FAutogit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YusufLisawi%2FAutogit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YusufLisawi","download_url":"https://codeload.github.com/YusufLisawi/Autogit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252940934,"owners_count":21828769,"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"],"created_at":"2024-11-30T10:16:14.488Z","updated_at":"2025-05-07T19:09:39.799Z","avatar_url":"https://github.com/YusufLisawi.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Autogit\n\nThis script provides a simple and convenient way to add, commit, and push changes to a Git repository. The script includes the following options:\n\n    -c or --commitonly: Only add and commit changes, but do not push.\n    -p or --pushonly: Only push changes, but do not add or commit.\n    -cp or --commitpush: Add, commit, and push changes.\n    -b, --branch      Specify the branch to push changes to.\n    -m or --message: Use a custom commit message. By default, the commit message is \"Automated commit\".\n    -h or --help: Display help information.\n\n## Installation\n\n    curl -fsSL https://raw.githubusercontent.com/YusufLisawi/autogit/master/install.sh | zsh\n\n## Usage\n\nTo use this script, simply run the script file in the terminal, followed by the desired options.\n\n\tautogit.sh [-c | --commitonly] [-p | --pushonly] [-cp | --commitpush] [-m | --message COMMIT_MESSAGE] [-h | --help] [--]\n\n## Options\n\n**-c or --commitonly**: Only add and commit changes, but do not push.\n\n    ./autogit.sh -c\n\n**-p or --pushonly**: Only push changes, but do not add or commit.\n\n    ./autogit.sh -p\n\n**-cp or --commitpush**: Add, commit, and push changes.\n\n    ./autogit.sh -cp\n\n**-b or --branch**: Specify the branch to push to\n\n    ./autogit.sh -b branch_name\n\n**-m or --message**: Use a custom commit message. By default, the commit message is \"Automated commit\".\n\n\n    ./autogit.sh -m \"Commit message\"\n\n**-h or --help**: Display help information.\n\n\n    ./autogit.sh -h\n\n### Notes\n\n- If the current directory is not a Git repository, the script will prompt you to initialize a new repository.\n- If you choose to commit and push automatically, the script will add, commit, and push changes to the remote repository.\n***By default, the script pushes changes to the master branch of the remote repository.***\n- If you want to push changes to a different branch, you will need to modify the script accordingly.\n\n## How to use\n\n1. Copy the autogit.sh file to the directory where you want to use it.\n2. Open a terminal and navigate to the directory where you copied the autogit.sh file.\n3. Run the script by typing ./autogit.sh followed by the desired options.\n\nTo use the script from anywhere on your computer, you can add the directory where you saved the script to your system's PATH. Here's how to do it:\n\nOpen your terminal and enter the following command to open your shell's configuration file:\n\n    nano ~/.bashrc\nor\n\n    nano ~/.zshrc\n\nAdd the following line at the end of the file:\n\n    export PATH=$PATH:/path/to/the/directory/containing/autogit.sh\n\n**Replace /path/to/the/directory/containing/autogit.sh with the actual path to the directory where you saved the autogit.sh file.**\n\nSave the changes and exit the editor by pressing **Ctrl + X**, then **Y**, then Enter.\n\nTo apply the changes, run the following command in your terminal:\n\n    source ~/.bashrc\nor\n\n    source ~/.zshrc\n\n*Now you can run the autogit.sh script from anywhere on your computer by typing autogit.sh followed by the desired options.*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusuflisawi%2Fautogit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusuflisawi%2Fautogit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusuflisawi%2Fautogit/lists"}