首页 > 代码库 > 新手上路之GitHub
新手上路之GitHub
Setup GitHub client
Refer to https://help.github.com/articles/set-up-git/
1. Sign Up (Sign In): https://github.com/
2. Create New Repository (optional)
3. download and install GitHub client:
For Windows: https://windows.github.com/
For Mac: https://mac.github.com/
4. Run github client, set default local create & clone path.
5. Create new repo, then publish it to server by clicking "Publish Repository". Or clone the repo created in step 2.
In case you encounter the following issue: "could not resolve host github.com"
You should: open Git Shell, run command: "git config --global http.proxy http://<login_internet>:<password_internet>@aproxy:aport"
6. To cache your password in Git, run command in Git Shell: "git config --global credential.helper wincred"
The config file path: C:\Users\<your username>\.gitconfig
Integrate with Eclipse
1. Install egit plugins in Eclipse.
2. Create a new project / import project to the location of github local repository.
3. Right click on project explorer, Team->Commit. Or Commit & Push.
新手上路之GitHub