update my project with git command

hello everybody ! so i have a project made with laravel and vuejs on degitalocean and I made some changes on my localhost (desktop) , now i want applied those changes on degitalocean server ( make an update to my project for files who was changed only ) how can i do that with git command ?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi @djebirihamza95,

Using git is the perfect way as you’ve decided.

Firstly, you’ll need to create a repo on github. They have a perfect article on how to do so HERE.

Once you have commited your code from your local environment, you’ll need to pull the changes on your DO server. There is another great article provided by github as well - HERE

Kind regards, Kalin