I have a local repo for a project on my computer, I have pushed it to a remote github repo. I then cloned the repo to my shared webhosting server using ssh.
I have since then made some changes on my computer, which i have pushed to github and then merged to origin (master) repo.
I would like to now update these files on my web server, but I'm a little confused about the git terminology.
Git clone X
Returns
fatal: destination path '' already exists and is not an empty directory.
Do i use git pull? git fetch? I thought these commands might download the files back to my local repo on my computer instead of the webserver.
git pullmeans: rungit fetch, then rungit merge. If you want to do both, in that order, and are sure thatgit mergeis the right thing to do immediately aftergit fetch, you can combine the two into one convenientgit pull. I recommend keeping them separate until you are familiar with how each of the two steps work, because you will eventually find cases where you don't want to rungit mergeimmediately, or where something goes wrong in one of the two steps and you are not sure which one failed, much less what to do about it.