{"id":15113747,"url":"https://github.com/krishnamodepalli/gitautopuller","last_synced_at":"2026-02-02T10:39:00.835Z","repository":{"id":255506056,"uuid":"851094626","full_name":"krishnamodepalli/gitautopuller","owner":"krishnamodepalli","description":"Automate the git pull/fetch from remote when entering a local git repo.","archived":false,"fork":false,"pushed_at":"2024-09-13T16:55:43.000Z","size":48,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-16T05:45:11.594Z","etag":null,"topics":["automation","bash","git","gitautopull"],"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/krishnamodepalli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2024-09-02T12:15:58.000Z","updated_at":"2024-09-13T16:55:47.000Z","dependencies_parsed_at":"2025-06-16T05:36:58.093Z","dependency_job_id":"970078fa-a8db-47be-912f-a2ad3d9eee7e","html_url":"https://github.com/krishnamodepalli/gitautopuller","commit_stats":null,"previous_names":["krishnamodepalli/gitautopuller"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/krishnamodepalli/gitautopuller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishnamodepalli%2Fgitautopuller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishnamodepalli%2Fgitautopuller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishnamodepalli%2Fgitautopuller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishnamodepalli%2Fgitautopuller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krishnamodepalli","download_url":"https://codeload.github.com/krishnamodepalli/gitautopuller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krishnamodepalli%2Fgitautopuller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29010491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T10:37:29.253Z","status":"ssl_error","status_checked_at":"2026-02-02T10:37:28.644Z","response_time":58,"last_error":"SSL_read: 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":["automation","bash","git","gitautopull"],"created_at":"2024-09-26T01:23:07.420Z","updated_at":"2026-02-02T10:39:00.807Z","avatar_url":"https://github.com/krishnamodepalli.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# gitautopuller\n\nThis is a simple bash script extension to check if the current directory\nis a `git` repository or not and ask the user to either `pull`, `fetch` or\njust do nothing.\n\n## Install\n\nWe use makefile to install the bash script.\n\nLinux (Debian/Ubuntu):\n```bash\nsudo make install\n```\n\nThere is one more thing after installation, you need to setup your shell\nto check if the current directory is a git repository or not. For that,\nadd corresponding script for your shell\n\n#### `bash`\nAdd the following into your `.bashrc` file.\n```bash\nPROMPT_COMMAND=\"fetch_or_pull\"\n```\n\n#### `zsh`\nAdd the following into your `.zshrc` file.\n```zsh\nchpwd() {\n    fetch_or_pull\n}\n```\n\n#### `fish`\nUnfortunately `fish` do not support this feature of runnning a command on each\ndirectory changes. But we can take advantage of the `cd` command and alias it\nwith a new function just like below.\n```fish\nfunction cd\n    # call the original `cd` command\n    command cd $argv\n\n    # running our script down here\n    fetch_or_pull\n    # you can also run any other scripts down here\nend\n```\n\n## Uninstall\n\nAs simple as install\n```bash\nsudo make uninstall\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrishnamodepalli%2Fgitautopuller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrishnamodepalli%2Fgitautopuller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrishnamodepalli%2Fgitautopuller/lists"}