Answer the question
In order to leave comments, you need to log in
What happens on github when git push command?
Hey everyone... I'm sorry, I'm learning Git and some of the processes don't fit in my head.
I'm wondering what happens to files on github when you push changes to it - git push?
I understand that they are changing, i.e. you can go to the working copy file on github and see the change.
For the sake of experiment, I created two directories on the local: one with the site files that I changed, and the second used as a remote remote . Then I made changes in the first one and sent everything to the second one.
And I ran into two obstacles:
1. Apparently, by default, you can’t push to another directory, but I decided this by setting it in the settings of the remote
directory [receive] denyCurrentBranch = ignore
2. When I did push, everything was sent, everything is identical, BUT
with the following changes and pushes in the remote directory , all commits were identical, and the files themselves did not change (as this happens on github).
To make them identical, it turns out, only with the help of the command git reset --hard
Actually, I had a question: how are files on github automatically updated after git push
?
Do I understand correctly that this command is automatically executed there git reset --hard
after each push?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question