{"id":25277046,"url":"https://github.com/muhfalihr/gitautopush","last_synced_at":"2026-05-05T12:31:54.262Z","repository":{"id":238809591,"uuid":"797614589","full_name":"muhfalihr/GitAutoPush","owner":"muhfalihr","description":"Bash script designed to automate the process of adding, committing, and pushing changes to a Git repository","archived":false,"fork":false,"pushed_at":"2024-05-20T02:36:50.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T16:49:14.834Z","etag":null,"topics":["automation","git","git-automation","github","shell","shell-script"],"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/muhfalihr.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":"2024-05-08T07:24:35.000Z","updated_at":"2024-05-20T02:37:56.000Z","dependencies_parsed_at":"2024-05-20T03:45:29.265Z","dependency_job_id":null,"html_url":"https://github.com/muhfalihr/GitAutoPush","commit_stats":null,"previous_names":["muhfalihr/gitautopush"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhfalihr%2FGitAutoPush","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhfalihr%2FGitAutoPush/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhfalihr%2FGitAutoPush/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muhfalihr%2FGitAutoPush/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muhfalihr","download_url":"https://codeload.github.com/muhfalihr/GitAutoPush/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471524,"owners_count":20944158,"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":["automation","git","git-automation","github","shell","shell-script"],"created_at":"2025-02-12T16:40:44.321Z","updated_at":"2026-05-05T12:31:49.235Z","avatar_url":"https://github.com/muhfalihr.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitAutoPush\n\n![Project Image](https://github.com/muhfalihr/mystorage/blob/master/20240508_161828.png)\n\n### Description\n\n**GitAutoPush** is a user-friendly Bash script designed to automate the process of adding, committing, and pushing changes to a Git repository. With a clean and interactive command-line interface, this script simplifies version control operations and enhances productivity.\n\n### Features\n\n- **Loading Spinner**: Displays a spinner animation during the `git add` process to indicate ongoing operations.\n- **Commit Prompt**: Prompts the user to enter a commit message interactively.\n- **Environment Variable Display**: Shows the `GITHUB_ACCESS_TOKEN` for convenience.\n- **Error Handling**: Checks for the existence of a `.git` directory and handles errors gracefully.\n- **Customizable Separators**: Uses dynamic separators with titles for organized output.\n\n### Usage\n\n1. **Clone the Repository**:\n   ```bash\n   git clone https://github.com/muhfalihr/GitAutoPush.git\n   cd GitAutoPush\n   ```\n\n2. **Make the Script Executable**:\n   ```bash\n   chmod +x gitautopush.sh\n   ```\n\n3. Add the directory location of the gitautopush file to the `PATH` environment variable Create an environment variable for `GITHUB_ACCESS_TOKEN` in the files `~/.bashrc` ( **for bash shell** ), `~/.zshrc` ( **for zsh shell** ), `~/.config/fish/config.fish` ( **for fish shell** ). Because I use the ***zsh shell***, for this practice I edited the configuration in the `~/.zshrc` file.\n\n    ```bash\n    nano ~/.zshrc\n    ```\n\n    Add the **gitautopush directory** to the `PATH` environment variable\n\n    ```bash\n    export GITHUB_ACCESS_TOKEN=\u003cgithub-access-token\u003e\n    export PATH=$PATH:/path/to/GitAutoPush\n    ```\n\n    save changes to the `~/.zshrc` file\n\n4. Set environment variables\n\n    ```bash\n    source ~/.zshrc\n    ```\n\n5. **Run the Script**:\n   ```bash\n   gitautopush.sh\n   ```\n\n### Prerequisites\n\n- Ensure that you have Git installed on your system.\n- Make sure you are in the root directory of a Git repository before running the script.\n\n### Requirements\n\n1. Install figlet\n\n    ```sh\n    apt install figlet\n    ```\n\n### Example Output\n\n```sh\n↳ Enter a message to commit: Initial commit\n\n↳ Output ↴\n[master 1a2b3c4] Initial commit\n 1 file changed, 1 insertion(+)\n create mode 100644 example.txt\n```\n\n# `NOTE : This is just a project to automate the basic steps that I generally do when pushing a project to a git repository`","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhfalihr%2Fgitautopush","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuhfalihr%2Fgitautopush","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuhfalihr%2Fgitautopush/lists"}