arc90 / git-sweep

A command-line tool that helps you clean up Git branches that have been merged into master.
MIT License
2.55k stars 125 forks source link

[bug] Could not find the remote named local #52

Open caleb15 opened 5 years ago

caleb15 commented 5 years ago
>>> git-sweep cleanup --origin=local
Could not find the remote named local

Not sure why it needs a remote named local, it should be able to tell if a branch is local or not without the user having to configure their remotes in a special way.

Sapphire64 commented 5 years ago

Hi, not an author of this repo, but one who added a comment in README telling how to clean up local branches. You actually need to add remote named local to make it work, and it's a hack to achieve the desired effect:

git remote add local $(pwd)

Unfortunately this project is dead for a while so feel free to fork it and improve it, especially around local branches. Also Python 3 support is needed already :)