1, register a github account, this everyone knows AH
2. Configuration
(1 Check: Enter terminal, enter in user directory:
Ls-al ~/.ssh
get on behalf of local not configured over GitHub too.
(2 Create a directory, enter:
mkdir. SSH
(3 into the current. SSH directory
pwd
CD. SSH
Pwd
(4 Generate SSH keys, enter it in the. SSH directory:
Ssh-keygen-t rsa-c "[Email protected]"
Press ENTER after the input is complete until a good graphics position appears (proving that both the public and private keys are generated):
(5 after generating public and private keys enter to see if the build succeeded
Ls-la Id_rsa (private key) id_rsa.pub (public key)
(6 Gets the public key, and the input is automatically copied to our clipboard:
Pbcopy < ~/.ssh/id_rsa.pub
(7 click on setting-on your own github ssh key->add ssh key to add the public key you just acquired.)
(8 Verify the Public key, verify that the gray dots on the successful web page will turn green, this step needs to be entered in the terminal (input back to GitHub's Sshkey interface to see the dots turn green):
ssh-t [email protected]
(9 Copy to public key after opening GitHub home page
Click Warehouse (repositories)
Then click New to GitHub to create the warehouse interface
(10 download an empty warehouse to a local via the address provided by GitHub (HTTPS clone URL)
1?? Create a new project to the local warehouse folder first
2?? In terminal input: git clone https://github.com/daomul/AxibaWeibo.git can be downloaded to local
3?? Drag project engineering into the new local warehouse folder (1?? In the new)
(11 navigate to the local warehouse file and enter (view files with no push):
git status
(12 Add File, enter:
git Add.
git status
(13 Submit file, enter:
Git commit-m "Initialize project".
(14 use Xcode to submit the code to GitHub (note: When a username password is required, the nickname displayed on GitHub is entered instead of the login)
(15 Viewing results
Configuration and use of the Arsenal GitHub