Back in January of this year I was making some urgent changes to a project, and after making all the alterations and deploying it live etc. I went to go and comit all my changes within Wappler and then try push to github, which gave me an error of SecureTransport error: (null) while trying to figure out what went wrong I had a few other deadlines and urgencies, and so I just ignored it and carried on with other tasks.
Unfortunately 3 months later I needed to make more changes to this project and forgot I had broken something, so i made all my changes, and comitted them and tried to push to git and got the error again, anyway long story short I still have not fixed this and not have another 6 comits that all will not push to Github.
I am currently trying to fix this, and have worked out that i need to add 2 more directories to my .gitignore file as it is trying to push about 500mb of images from a flipbook i added using some application.
I went and edited the gitignore file, added the 2 directories, and did another comit, tried to push it, and same error.
I assume it is trying to push all the comits I have been doing over the months, and still failing on that one.
This is what I have now
As you can see the last successful push was from 24-01-2025.
I see there are things like revert this comit, reset this comit etc. but as far as i am aware those commands would revert the files on my website too which is certainly not what i want to happen.
Anyone got any suggestions of the safest way to proceed from here after I broke it due to my own pure laziness?
I always recommend using a proper Git client to solve conflicts and other complications. Git clients will always be more “battle-tested” when it comes to solving problems than Wappler’s built-in Git client
I personally use Fork, so if you try it feel free to show the errors you get.
If you don't mind nuking your Git history it's probably the easiest option to delete the .git folder and then create a new GitHub repo (if you want to preserve the existing one) or force push to your existing repo which would erase history.
I'm not a Git expert but have been using it for a few years now. My understanding is that Wappler creates the repo locally and it can run there alone should you want to do that. However, if you connect it to a remote repo, like Github, then it will match the local copy after you've fetched/committed and then pushed/pulled.
Therefore, I would think you have the repo working fine in your local copy so I would try creating a brand new repo on Github, connect to it and then push it all to that. This would mean you have the old repo on Github just in case, too. And the new one should get all the history - it should look identical to what Wappler is showing you.
And take a full backup of your Wappler project before doing anything! This will include the local repo.
If anyone else thinks this is poor advice, or can add to it, please chip in! I'm just trying to help from my own experience.
Your theory is right and it would work, but I'm concerned because he probably commited 500 MB of files before excluding in .gitignore - those files are now permanently in Git history
Thanks for the advice all, this looks promising indeed.
I dont mind losing the git history, just want to make sure i have the latest one, so that sounds like a good plan.
Thanks for the reminder, I best do that, it will take away some of my concern over this. As Apple said though and I think he is right, i did a bad comit already 6 months ago with the 600mb, so i think that will still break the new idea.
My idea, just because I already find Git to be such a confusing beast is to try do a combination of both your suggestions. But will this work?
Do a backup of the entire project locally
Click Manage Remote Repositories
Delete the existing one
Reconnect to it like it the first time
Hopefully now Wappler will drop all the history of the local comits and I can just comit and push again as if it is a totally new project with a new repo?
Sorry that I don't have any real advice for the issue at hand, but I highly recommend doing this as well. The built-in git "show changes" feature in Wappler hasn't been working for me on any projects for at least a month now because it spits out an error, but if I use any other git client it works just fine, and I've solved a lot of other misc Wappler related git errors by using them. One of them might be able to solve your issue by just attempting to push via it.
GitKraken is highly recommended, but Github's own desktop client is pretty good too for something basic.
Ok so I decided to try this on my Mac, turned on Show hidden files in the finder first then made a full backup of the entire project with a right click compress option, so I have a full zip file of the entire project.
Then in Wappler i clicked "Manage Remote Repositories" hit delete and closed the popup.
Back in the finder i took the existing .git folder and did a right click compess on that too, and deleted the entire .git folder.
Back to Wappler I switched to another project, and back again, which shows Git Manager window like it is a brand new project that has never been used before.
I connected to my existing Github repo again, did a select all files and my local comit.
When i tried to do a Push though, it throws this error cannot push non-fastforwardable reference I clicked ok to that and noticed that the Wappler Git Manager has now managed to show all my history from before I locally comitted the one with an error in January 2025 and cleared the latest 6 local ones which never worked before.
I clicked the "Manage Remote Repositories" hit delete and closed the popup again, which removed all that history again, only leaving my latest local comit.
Went to github and created a new Repository
In Wappler I connected to the new repository i just created, and did a push.
This gave a new error of failed to push some refs "refs/heads/main": pre-receive hook declined
Last attempt, I clicked "Manage Remote Repositories" hit delete
In the finder delete the newest .git folder it created
Switched projects again to get beck to my fresh Create Repository window
Connected to the latest empty Git repository
Locally committed all the files
Pushed it and same error of failed to push some refs "refs/heads/main": pre-receive hook declined
So that does not seem to work either, looks like as Apple and Digo have suggested i may need to rather use another client for this, or wait and see if someone comes up with a Wappler suggestion to get it all working again.
Ok got this all working again, thank so much for all the help everyone.
Procedure
Deleted git managers connection in Wappler
Delete .git folder in finder
Create new Repository in Github website
In Wappler switch projects and go back again to show a new connect to github
Connect to latest repository
Local Comit
Push
All working again, the issue from the attempt adove was doing a backup of my old .git folder, did not realise it created a 700mb .zip file that it also wanted to push.
Thank you again all, I have a 1 month trip planned to the UK in 2 weeks time and just wanted to make sure all my stuff was fully backed up etc. Just incase my MacBook Pro gets lost/stolen etc.
hahaha.. the irony.. leaving the crime capital of the world ..... to worry your stuff will get stolen somewhere else... hahahaha... you should be so "aware" of stuff around you now and see "suspect" guys from 100 blocks away ....
Lol, very true, thats exactly why i worry, I am flying from Durban South Africa - Johannesburg South Africa - Rwanda Kigali - Heathrow, and yeah I am not worried about the Heathrow part, just getting over the continent of Africa, and then i should be fine, haha.
Cheese I love that laptop bag, thats awesome, my Mac was the same price as a 11 months of my home bond, so not replaceable easily for me at all, all i need now is to handcuff it to my arm.