开发者

Deploy to a machine in the network using git

开发者 https://www.devze.com 2022-12-21 01:53 出处:网络
I am developing an app and version-control it using git at github. Now there is another machine for testing purposes without access to the internet, so I cannot pul开发者_JS百科l the changes from gith

I am developing an app and version-control it using git at github. Now there is another machine for testing purposes without access to the internet, so I cannot pul开发者_JS百科l the changes from github. I am able to connect to the test server through the network.

My question is: is it possible to push changes from the development repository to the test repository directly and if so - how (can I setup the test-machine as remote)?

I am new to version-control and to git, so please be nice :)


A simple share to the test repo should be enough

git remote add test file:////path/to/test/repo

or simply:

git remote add test /path/to/test/repo

(See git remote)

That is enough to make a push to the test repo.
See this example

0

精彩评论

暂无评论...
验证码 换一张
取 消