Have not used git before, today studied, managed the code successfully, recorded:
First look at the results:
Now let's take a look at the steps:
① Make sure your computer has a git environment, if not, http://sourceforge.net/projects/git-osx-installer/files/download git the latest version of the direct installation, there is another way is to Macport, That I didn't make it, I didn't watch it.
② Create a folder anywhere on your computer ... Then open the terminal, CD to this directory, and then enter the git clone + your managed server Project address: Here I use http://git.oschina.net/for hosting, so my commands and results are as follows:
③ then in the created directory, found one more of your project name, copy your project files to this directory, follow the following command to continue:
After a while, upload all the directories and enter: Git push
The representative succeeds, then goes to the host server to see, can see the article earlier effect.
Code-Hosting related ...