One: Project deployment
Project deployment one. Open source China (Oschina)
- Website address: 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
Two. With
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付费
Three. Use of Oschina
- 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 to generate the RSA key pair
- $ ssh-keygen-t rsa-c "[Email protected]"
- viewing public key content
- Copy and paste the public key contents to Https://git.oschina.net/profile/sshkeys
- Test public key
- New Project
- Cloning a project
- Switch to project directory
- $ cd Project directory
- $ git clone [email protected]:xxx/projectname.git
- Add to
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
- Note: Do you know if
.gitignore
there is an important feature of team development experience
Swift Project first day: Environment deployment