Git: localhost > remote development > remote production

后端 未结 3 430
北荒
北荒 2021-02-03 15:51

I\'m new to Git and I don\'t understand how I can achieve the following. There are 2 servers:

  1. Localhost
  2. Linode.com VPS

Basically, I want to

3条回答
  •  野性不改
    2021-02-03 16:09

    A suggestion: (which is not exactly what you want)

    1) Use the "normal git way of working".. have a local and a remote repository.

    2) Pull the local repository code onto the VPS for testing

    3) Pull the remote repository code onto the VPS for production

提交回复
热议问题