I created a repository, added some commits, pushed to GitHub.
Later, I created a new project, new local git repository and I wanted to commit new files from new repository to the old repository on GitHub. So I executed:
git push --force origin master
but this command removed all previous commits from the repository on GitHub.
Is there a way turning back? How to make it properly next time?