Answer the question
In order to leave comments, you need to log in
How to make the GitHub master branch exactly the same as the local one?
The project repository has been created. After that, development was carried out on the local repository. Many files have been removed from the first commit on GitHub. Ultimately, on the local repository, all changes were merged into one master branch and the git push command was sent to GitHub. And what was my surprise when the files that were added in the First Comit and deleted locally remained. The result is that the files that were added in the First Commit and the new files were updated, but the files that were locally removed remained on GitHub. How to make the GitHub master branch exactly the same as the local one?
Answer the question
In order to leave comments, you need to log in
see git status
If there is nothing there and you do a git push, your repositories will be the same.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question