{"id":22656596,"url":"https://github.com/basameera/egit","last_synced_at":"2026-05-01T09:32:47.281Z","repository":{"id":182083682,"uuid":"260039032","full_name":"basameera/egit","owner":"basameera","description":"Easy Git wrapper using Python 3","archived":false,"fork":false,"pushed_at":"2024-09-09T13:24:03.000Z","size":37,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T07:45:34.570Z","etag":null,"topics":["easygit","git","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/basameera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-04-29T20:29:59.000Z","updated_at":"2024-09-09T13:24:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ed34b35-c1d2-462d-82c8-e94f01a13e51","html_url":"https://github.com/basameera/egit","commit_stats":null,"previous_names":["basameera/egit"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/basameera/egit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basameera%2Fegit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basameera%2Fegit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basameera%2Fegit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basameera%2Fegit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basameera","download_url":"https://codeload.github.com/basameera/egit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basameera%2Fegit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32492213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["easygit","git","python"],"created_at":"2024-12-09T10:15:23.224Z","updated_at":"2026-05-01T09:32:47.266Z","avatar_url":"https://github.com/basameera.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# egit\n\nPython module for handling git easy.\n\n## Features\n\n* **\u003cspan style=\"color:red\"\u003eSmart git fetch\u003c/span\u003e**\n\n**Only Python 3**\n\n**Module can be accessed using both `eg` and `egit` commands**\n\n``` bash\n$ eg -h\nusage: \n  egit                  : Git status\n  egit comment          : Git add, commit (with \"comment\") and push\n  egit -a               : Git Add -A\n  egit -c comment       : Git Commit -m comment\n  egit -p               : Git Push\n  egit -u               : Git Pull\n  egit -b \u003cbranch name\u003e : Change branch\n\nEasy Git - 0.1.1 | 2020 Sameera Sandaruwan\n\npositional arguments:\n  comment\n\noptional arguments:\n  -h, --help  show this help message and exit\n  -a          Git Add -A\n  -c          Git Commit -m comment\n  -p          Git Push\n  -u          Git Pull\n  -b          Change branch\n  -s          git-credential-cache for 3 hours\n```\n\n## Install\n\n1. Clone this repo. ( `git clone https://github.com/basameera/egit.git` )\n1. `cd egit` \n1. `pip3 install .` \n1. Add `export PATH=~/.local/bin:$PATH` to `~/.bashrc` file\n1. `source ~/.bashrc`\n\n**Git fetch**\n\n``` \nUPSTREAM=${1:-'@{u}'}\nLOCAL=$(git rev-parse @)\nREMOTE=$(git rev-parse \"$UPSTREAM\")\nBASE=$(git merge-base @ \"$UPSTREAM\")\n\necho LOCAL : $LOCAL\necho REMOTE: $REMOTE\necho BASE : $BASE\n\nif [ $LOCAL = $REMOTE ]; then\n    echo \"Up-to-date\"\nelif [ $LOCAL = $BASE ]; then\n    echo \"Need to pull\"\nelif [ $REMOTE = $BASE ]; then\n    echo \"Need to push\"\nelse\n    echo \"Diverged\"\nfi\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasameera%2Fegit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasameera%2Fegit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasameera%2Fegit/lists"}