"Chinese github" Bash Trustie official website, start code hosting ...
1. New Project
2. Project configuration information
3. Add team members information to facilitate collaborative development, shared programming
4. Create a new version library
4.1 Creating a Page
4.2 Repository Fill in the necessary information, Please remember the password, after the submission of the code needs to enter
5. Create a folder locally and store the code
6. How to submit the code, method one: Use the GitHub official client
6.1 Using Githua official client
6.2 GitHub Client Operation Flow:
L Use the following command
git init # initializing the Local warehouse
git remote add trustie http://[email protected]/macover/projectv1.git
git add README
git commit-m " Submit README file
git config http.postbuffer 524288000 # Set Local Post Cached as 500MB , you can not perform
git push-u trustie Master
L operation as shown
6.3 The commands used are as follows and are displayed directly on the website
6.4 The site can see the submitted information after the submission is successful
7. method of submitting the code, method two: using the Msysgit tool
7.1 Installing the Git client under Windows http://msysgit.github.io/
7.2 Use the following command to configure
$git config--global user.name "your_name"
$git config--global user.email "Your_email"
Note: Name and the Email is used to set your user name and contact information ( User.Name and the User.email must be filled in, these will be used when the repository is submitted , one of the name and the Email to and forge.trustie.net Keep the login name and password consistent on the To facilitate code contribution statistics ).
7.3 Use the following command to synchronize the local warehouse with the remote repository
$ git remote addtrustie http://[email protected]/macover/projectv1.git
$git Pull Trustie Master
Note: Gitpull The action prompts you for the key when the user creates the repository on the site, which controls only the team member to submit the code
7.4 Code submission commands consistent with GitHub use commands