• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Git Extension - How to delete old branches?

TurnRound

New Pleskian
I'm successfully using the Plesk Git Extension to pull updates from Github to my development and production sites.

However, branches I've deleted from my local dev environment and Github are not deleted from the Branch menu in the extension (under Change branch and path).

Every branch I've ever created is still listed there, despite having been deleted from Github.

How do I remove these? Clicking the Pull Updates button doesn't do it.

Thanks.
 
I have the same question.
I have a lot of already deleted branches appearing in the branch select dropdown.
I saw that all of the branches are in yourDomain.com/git/yourRepository.git/refs/heads/
I read here that it is "save" (note the quotes!) to simply delete those (https://stackoverflow.com/a/42258262/3038364) but I haven't tried it jet.

Would be cool if somebody from Plesk (or the git extension) could give some insides...

Best,
Felix
 
You may submit a detailed report here Reports and I will forward it to Plesk developers.
 
Hi,

Plesk Git extension creates the repository in the {WEBSPACEROOT}/git/{reponame.git}. The branches you see in the dropdown are in that repository. From {WEBSPACEROOT} (system user home) you can interact with it like this
Bash:
git --git-dir=git/{name}.git/ --work-tree={deployPath}/ branch -a
  dev
* master
You can delete the dev branch using:
Code:
git --git-dir=git/{name}.git/ --work-tree={deployPath}/ branch -d dev
Deleted branch dev (was edae48f).

P.S. It will remove the branch but it won't reduce the repository size.

Regards,
Raul
 
Back
Top