{"id":20779592,"url":"https://github.com/declancm/git-scripts","last_synced_at":"2026-04-08T20:35:31.041Z","repository":{"id":110833431,"uuid":"435348107","full_name":"declancm/git-scripts","owner":"declancm","description":" Bash shell scripts to make life easier when using Git.","archived":false,"fork":false,"pushed_at":"2022-03-02T02:18:25.000Z","size":64,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T22:23:31.340Z","etag":null,"topics":["bash","git","github","neovim","script","vim"],"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/declancm.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":"2021-12-06T03:27:30.000Z","updated_at":"2022-02-03T02:20:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"9daa321a-a7ce-4f40-8db8-6175cf2687af","html_url":"https://github.com/declancm/git-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/declancm/git-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declancm%2Fgit-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declancm%2Fgit-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declancm%2Fgit-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declancm%2Fgit-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/declancm","download_url":"https://codeload.github.com/declancm/git-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/declancm%2Fgit-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31573788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bash","git","github","neovim","script","vim"],"created_at":"2024-11-17T13:28:37.537Z","updated_at":"2026-04-08T20:35:30.986Z","avatar_url":"https://github.com/declancm.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-scripts\n\nBash shell scripts to make life easier when using Git.\n\nThe scripts allow for:\n\n- automated git commit and push,\n- automated git pull.\n\n## The Scripts\n\n### commit.sh\n\n- The script detects the current git repository, the current branch and the name\\\n  of the remote repository, then pushes to the remote repository with the branch\\\n  of the same name.\n\n### commit-silent.sh\n\n- A silent version of 'commit.sh' which only gives an output if an error occurs.\n\n### pull.sh\n\n- Git pull from your remote repository for your current branch.\n\n### pull-silent.sh\n\n- A silent version of 'pull.sh' which only gives an output if an error occurs.\n\n## Dependencies\n\n- Bash\n- git\n\n## Installation\n\n1. Clone the directory:\n\n    ```Bash\n    git clone https://github.com/declancm/git-scripts.git ~/git-scripts\n    ```\n\n2. Ensure the scripts executable:\n\n    ```Bash\n    chmod +x ~/git-scripts/*.sh\n    ```\n\n3. Make sure you have added a remote repository to your desired git directory:\n\n    \u003chttps://docs.github.com/en/get-started/getting-started-with-git/managing-remote-repositories\u003e\n\n4. Aliases can be created within ' ~/.bashrc ' (or ' ~/.zshrc ' for ZSH as long as\\\n   bash is installed) like so:\n\n   ```Bash\n   alias commit='source ~/git-scripts/commit.sh'\n   alias pull='source ~/git-scripts/pull.sh'\n   ```\n\n## Instructions\n\n### For Terminal Usage\n\nFrom terminal, manually run the shell scripts:\n\n```Bash\nsource ~/git-scripts/commit.sh\nsource ~/git-scripts/pull.sh\n```\n\nA string can be supplied as an argument to create a custom commit message.\n\n```Bash\nsource ~/git-scripts/commit.sh \"example commit message\"\nsource ~/git-scripts/pull.sh \"example commit message\"\n```\n\nTo get the most benefit from these scripts, create an alias in your .bashrc (or\\\n.zshrc etc.)\n\n### For Vim/Neovim\n\nThe same scripts can be used for vim/neovim:\n\n```vim\nnnoremap \u003csilent\u003e \u003cleader\u003egc :!source ~/git-scripts/commit.sh\u003cCR\u003e\nnnoremap \u003csilent\u003e \u003cleader\u003egp :!source ~/git-scripts/pull.sh\u003cCR\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeclancm%2Fgit-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeclancm%2Fgit-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeclancm%2Fgit-scripts/lists"}