There was such a problem, created a repository on github and uploaded my files there, then uploaded files from the repository to the server. Then I made changes to the code on the local machine, commited these changes and uploaded them to github, and now I have a question, on what command can I upload these modified files to the server? Or do you need to re-clone the repository to the server?
1 answer
You can upload files from the repository to the server with the following command (assuming that you are working locally on the same branch on the server)
git pull The command is executed on the server.
- one
- one@SachaBlack, git stash is used to temporarily store changes that are too early to commit. However, they need to be saved, for example, to rebuy or switch to another branch. There seems to be a completely different task, but the author of the question about the branches does not mention. - cheops
- Topikstarter here left a message, and then deleted. He answered. Thank. - Sasha Chernykh
- Clearly, I apologize for the involuntary hitting :). - cheops
- I am sorry that I forgot to specify the recipient of the message through
@. Thank. - Sasha Chernykh
|