Monday, April 25, 2016

How to push local git to server?


I have not find good way to resolve this quesiton!

You can following this way:
FIrst :

You must set up git repo in the server:
git init --bare demo.git

In your client PC or Computer
Second: you just use clone command to clone the code:
git clone ssh:ip/directiry/demo.git

So EASY

Now you just start your work or you copy your had write code to the program! Just so easy!

Now you have done~


I try this way:
http://stackoverflow.com/questions/8978650/how-do-i-move-my-local-git-repository-to-a-remote-git-repository

can not resolve this question



No comments:

Post a Comment