How do I make a new app from another custom app?

So I have a custom app and I have a use case where I need to make some changes to it for one particular client. How do I make a new app with all the code from my other one?

What about maintaining 2 branches instead of creating another app?

Rename the application and link it to a new repository.

For example:
Create the site
Install the app.
Rename the app
Link the app to the new repository

To change the name of the app I think you have to modify the

bench --site my_site_name migrate
bench --site my_site_name clear-cache

I haven’t tested it, so if you’re going to try it do it on a test installation, but it might make sense

I’ve thought of this but I need both apps on the same bench

I will try it and let you know