I've managed to commit my changes locally to Github. Now I want to update it on my server. How do I connect to my server to pull the files from Github?
If the repository doesn't exist yet:
git clone [email protected]:sam_mitchell/my-project.git
If the repository exists, but you don't have a remote set up:
git remote add origin [email protected]:sam_mitchell/my-project.git
git pull origin master
If you already have your remotes set up, then:
git pull origin master
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With