Pamac remove package developed on the same dir
The title is probably not clear, but several times, when I created AUR package in the usual AUR package path, whe I used AUR to update, the same package after some changes, including come back Pamac overwritten my files, emptied the whole directory and change the source in .git/config from ssh to https.
I first with a simple package after coming back to add some change didn't understood why the package couldn't be pushed anymore and why the remote reference become https:// instead of ssh:// I just noticed this on new packages I was working on today.
I would suggest here to test the following field in .git/config: url = ssh://firstname.lastname@example.org/<package_name>.git
If this field use ssh protocol, a warning +question could pop-up to the user, and it could accept or not to overwrite it. If this field is of this kind it can be overwritten (optionally ask if it should be overwritten?) url = https://aur.archlinux.org/<package_name>