O
O
Oleksandr2015-07-04 00:19:38
git
Oleksandr, 2015-07-04 00:19:38

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

2 answer(s)
A
Andrey Burov, 2015-07-04
@LexFox777

see git status
If there is nothing there and you do a git push, your repositories will be the same.

A
Andrew, 2015-07-04
@Ashlst

see deleting files

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question