简体   繁体   English

使用Git进行版本控制和将更改写入远程服务器

[英]Using Git for both version control and writing changes to remote server

I'd like to use git as following: 我想使用git如下:

I have a repository on local machine where I do changes in code. 我在本地计算机上有一个存储库,可以在其中进行代码更改。 And I have a remote server, where this code should run. 我有一个远程服务器,应在其中运行此代码。

I've installed and set up msysgit and it is running fine: clones reps, connects to ssh and so on. 我已经安装并设置了msysgit ,它运行良好:克隆代表,连接到ssh等。

But I'm stuck at one issue: how do I make simple cloning of local repository to remote server so I could just git push my changes in code later on? 但是我遇到了一个问题:如何将本地存储库简单地克隆到远程服务器,以便稍后可以在代码中进行git push更改?

Here is the article, which in details describes how to make what I was asking in the question above. 这是本文,其中详细介绍了如何使我在上述问题中提出的内容。 It is about how to both control versions and deploy content to remote server: 它与如何控制版本以及将内容部署到远程服务器有关:

http://danbarber.me/using-git-for-deployment/ http://danbarber.me/using-git-for-deployment/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM