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 in
OSChina
And
GitHUB
The contrast
- Servers in China, faster
- 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
# 切换目录,MAC中目录的第一个字符如果是 `.` 表示改文件夹是隐藏文件夹$ cd ~/.ssh# 查看当前目录文件$ ls# 生成 RSA 密钥对# 1> "" 中输入个人邮箱# 2> 提示输入私钥文件名称,直接回车# 3> 提示输入密码,可以随便输入,只要本次能够记住即可$ ssh-keygen -t rsa -C "[email protected]"# 查看公钥内容$ cat id_rsa.pub
[email protected]# 终端提示 `Welcome to [email protected], 刀哥!` 说明连接成功
- New Project
- Cloning a project
# 切换至项目目录$ cd 项目目录# 克隆项目,地址可以在项目首页复制$ git clone [email protected]:xxx/ProjectName.git
# ~/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
.gitignore
Whether there is a significant feature of team development experience
Source Code manager git