Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pulling Git from server

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?

like image 791
Sam Mitchell Avatar asked Dec 17 '25 15:12

Sam Mitchell


1 Answers

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
like image 118
John Feminella Avatar answered Dec 19 '25 05:12

John Feminella



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!