First, a registered GitHub account
First, you need to register a GitHub account, registered address: https://github.com
Then we'll come here.
You will then receive an email from GitHub and enter the email verification
Second, create a personal github warehouse
Verify that success is the case, and then click Create a warehouse
You can also come to the personal center to create a warehouse.
This is the case when the creation is done well. It is best not to use Chinese when creating a warehouse, or your warehouse name will be displayed-such a small horizontal line.
Third, configure SSH keys
The terminal input shows hidden files: defaults write Com.apple.finder appleshowallfiles-bool true
Close: defaults write Com.apple.finder appleshowallfiles-bool true
The Finder needs to be restarted after the input command is completed Desktop top apple logo-> forced exit --
You can show hidden files
Then go to the personal file to see if there is any. ssh folder, some words personal suggestions deleted, from the new configuration
Terminal input command: mkdir. SSH create an. SSH folder
cd. SSH into the. SSH folder directory you just created.
Input directive: ssh-keygen-t rsa-c "Youemail" in double quotes fill in your email address
After the input is completed, you will be prompted to enter your password without having to press ENTER until it appears.
Then enter the command: Ls-la to see if the output is similar to this information, the configuration is successful
Input instructions: pbcopy < ~/.ssh/id_rsa.pub copy
Login to GitHub to access SSH keys
Add something just copied
This is done after the add is complete
Then go back to the Terminal input command: ssh-t [email protected] After the execution of this instruction will be output is sure you want to continue connecting (yes/no)? Enter Yes to enter
Go back to GitHub and refresh the page to see the gray dots next to the keys turn green, indicating that they have been added successfully.
Iv. uploading local projects to GitHub
Upload Project, here I was using GitHub client can download https://desktop.github.com here
After downloading, enter the username and email password after login clone just created warehouse to local
Then open clone to the local folder to add the items that need to be uploaded into the Firstrespository folder as an example, where you want to upload the project
Back to GitHub client after adding
Then click the button in the top right corner
This is before the submission.
That's what happened after the submission.
IOS Local Project upload Github,github Manage project configuration