I'd like to push my project and share the repo on Github and my coworkers. But I have one problem, while I'm developing the project I committed some private stuff e.g. passwords to the git, so I don't want to commit the history to Github. I just need to share the latest version of the Project, one last commit to Github, without past commits, history.
What I tried:
git push -u github_tmp d3710442f80889be21324d5be14a25fe4a0d0274:refs/heads/main
This didn't work, this does commit to Github but it shows me not 1 commit but like 26 commits (yes included all the past commits history on the branch)
So, how can I do that? Thanks.