Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting fatal: --delete doesn't make sense without any refs #21

Open
koppor opened this issue Aug 23, 2019 · 3 comments
Open

Getting fatal: --delete doesn't make sense without any refs #21

koppor opened this issue Aug 23, 2019 · 3 comments

Comments

@koppor
Copy link
Contributor

koppor commented Aug 23, 2019

I am executing on git bash on Windows using git version 2.22.0.windows.1. I get following output:

$ git-del-br -a
fatal: --delete doesn't make sense without any refs
fatal: --delete doesn't make sense without any refs
fatal: --delete doesn't make sense without any refs
fatal: --delete doesn't make sense without any refs
fatal: --delete doesn't make sense without any refs
fatal: --delete doesn't make sense without any refs
fatal: --delete doesn't make sense without any refs
@tusharmakkar08
Copy link
Owner

Hey @koppor

Can you share some of your branch names which you intend to delete by this?

Thanks.

@koppor
Copy link
Contributor Author

koppor commented Aug 26, 2019

There are so many branches here and I don't know, which ones have been merged. The other stackoverflow answers did not help. I hoped that your tool checks for the commitid and if that commit is followed by another commit, it just deletes the branch

$ git branch -a
  HotkeyReworkConsistency
  PRRV
  add-adr
  add-adr-for-mariadb-connector
  add-gitter
  addOracleTest
  auxcleanup
  background-task
  bettersearch
  bibsonomy
  bibsonomy-sz
  cheat-for-release-building
  checkstyle
  circleci20
  dante2018
  deb-and-rpm
  debian_3.6
  debian_3.7
  debian_3.8.1
  debian_4.0
  dependencies
  entryfield
  exchange-ignore-by-disabled
  fastCSL
  feature/consistent-cleanup-settings
  feature/fix-dash-formatter
  feature/gradle-4.8
  feature/xmp-provement
$ git branch --merged
  auxcleanup
  fix-dropbox-sync
  jdk9
  l10n_master
* master
  refine-comment

@woody544
Copy link

Check my answer here https://stackoverflow.com/a/67336376/2039415, which explains the steps for deleting a remote and local branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants