Source Code manager git

Source: Internet
Author: User

Open source China Community official website

https://git.oschina.net/

    • Opened in August 2008, the Open source Chinese community aims to provide Chinese it technicians with a comprehensive, fast-updating platform for retrieving open source software and exchanging experience with open source.
    • At present, many companies in China will deploy the company's projects inOSChina
And GitHUBThe contrast
    1. Servers in China, faster
    2. A free account can also be set up to create 私有 a project, and a GitHUB private project must be付费
Use
    • Registered Account

      • We recommend using NetEase's email address, and you may not receive a verification email with other free mailboxes.
    • Add SSH Public key

    • Open source China Help document address: https://git.oschina.net/oschina/git-osc/wikis/help #ssh-keys

    • Enter the terminal and enter the following command

# 切换目录,MAC中目录的第一个字符如果是 `.` 表示改文件夹是隐藏文件夹$ cd ~/.ssh# 查看当前目录文件$ ls# 生成 RSA 密钥对# 1> "" 中输入个人邮箱# 2> 提示输入私钥文件名称,直接回车# 3> 提示输入密码,可以随便输入,只要本次能够记住即可$ ssh-keygen -t rsa -C "[email protected]"# 查看公钥内容$ cat id_rsa.pub
    • Copy and paste the public key contents to Https://git.oschina.net/profile/sshkeys

    • Test public key

[email protected]# 终端提示 `Welcome to [email protected], 刀哥!` 说明连接成功
    • New Project
    • Cloning a project
# 切换至项目目录$ cd 项目目录# 克隆项目,地址可以在项目首页复制$ git clone [email protected]:xxx/ProjectName.git
    • Add togitignore
# ~/dev/github/gitignore/ 是保存 gitignore 的目录$ cp ~/dev/github/gitignore/Swift.gitignore .gitignore
    • Tips:
      • From https://github.com/github/gitignore getting the latest version of the gitignore file
      • Once a file is added .gitignore , 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
Tip: Do you know .gitignoreWhether there is a significant feature of team development experience

Source Code manager git

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.