1. Instructions before use: Do not know xcode,git, please self-degree Niang, do not know Gitbucket, can refer to the article: Git set up-gitbucket sledgehammer
2. Create a git step
1> Create an account in Gitbucket, create it under Account repository
After the successful creation, there will be git statement prompts, respectively, corresponding to the new Git project and the existing Git file project, very user-friendly:
2> Local, upload git files via terminal
( Hint: Execute the following code if you do not find the file or folder, it is recommended to go to the submenu or the parent menu to try again )
For No. git files project, need to be a . git file , execute the following statement on the path where the project is located
$ git init
$ git Add.
$ git commit-m ' initial project version '
Then go back to the parent directory to generate the Git folder with the following statement
$ CD.
$ git clone--bare Test test.git
Then use the hint statement to upload the contents of the git folder , which may require you to enter your account number and password on the gitbucket.
$git Remote Add Origin Http://xxxx.git
$git push-u Origin Master
After success, you can see your project source on the Gitbucket.
3. Download the code using Xcode
On the Xcode menu of source Control, Check out the popup page to enter the server git path.
Xcode Git client + gitbucket server using integrated induction