iOS Development-Project deployment

Source: Internet
Author: User

When you deploy a project, you are simply crying, and the command line replicates more than one character, causing the path to be found. Setting the public key is configured as a project deployment public key, not a personal public key, which causes git push to be unsuccessful.

Use

  • Registered Account
      • We recommend that you do not use Sina email, you may not receive the verification email
  • Add the SSH public key, enter the terminal, and enter the following command
      • Open source China Help document address:https://git.oschina.net/oschina/git-osc/wikis/help #ssh-keys
  • Enter the. SSH directory
    # switch directories, the first character of a directory in a Mac if '. ' indicates that folders are hidden folders
  • $ CD ~/.ssh
  • #如果. SSH folder does not exist, you can execute instructions to create it yourself
  • $ mkdir ~/.ssh
  • # View current directory files
  • $ ls
  • Generate RSA Key Pair
    $ ssh-keygen-t rsa-c "Your mailbox @xxx.com"
  • # for convenience, full carriage return (no need to enter the RAS file name and password)
  • viewing public key content
    $ cat ~/.ssh/id_rsa.pub
  • Copy and paste the public key contents to
      • Note: The public key content begins with Ssh-rsa, your mailbox ends, you cannot copy more than one space, you cannot have a space, and the format must be the same as the generated public key
      • Https://git.oschina.net/profile/sshkeys
  • Test public key

# Test SSH Connection

$ ssh-t [email protected]

# terminal hint Welcome to [email protected], geek Jiangnan! ' indicates successful connection

    • Create a new project in Oschina
    • Cloning a project

After configuring the Sshkey, you only need to copy the SSH link address, and then use the git command to do the relevant operation.

$ git clone [email protected]:xxx/projectname.git

    • Note: The Oschina warehouse corresponds to a number of addresses, one for HTTP access, and one for SSH access.
      • HTTP mode:https://git.oschina.net/leaderlee/OC_Advanced_Prepares_Lessons.git
      • SSH mode: [Email protected]:leaderlee/oc_advanced_prepares_lessons.git
    • Add Gitignore
      #/users/nj-lee/desktop/gitignore-master/is the directory where Gitignore is saved
    • $ cp/users/nj-lee/desktop/gitignore-master/swift.gitignore. Gitignore
    • $ git Add.
    • $ git commit-m"add Gitignore"
    • $ git push
    • Tips:
        • The latest version of the gitignore file can be obtained from Https://github.com/github/gitignore
        • once the. gitignore file is added , individual project settings (e.g., last open files, debug breakpoints, etc.) are not submitted to the server for each commit, which is important in team development

iOS Development-Project deployment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.