Git, a must-have for Open Source: start to use git to manage code

Source: Internet
Author: User

After falling in love with GitHub, I plan to use git for management.CodeNow

Actually, using git is relatively simple.

1. You need to have a Linux instance. Although there are also Windows clients, we recommend that you use Linux.

Of course, you have to install git before that, so there is no need to install a lot of content on the network.

2. Register a GitHub account.

3. Create an rsakey and add your key to GitHub/account. If you have multiple computers, you can add multiple keys.

See the figure after adding

For more information, see help.
Http://help.github.com/linux-key-setup/

4. Create a local directory after adding the directory, and then execute


Global setup:

 
Download and install git config -- global user. Name "xinqiyang" Git config -- global user. Email xinqiyang@gmail.com
Next steps:
Mkdir yxqcodes CD yxqcodes git init touch readme git add readme git commit-M 'first commit 'git remote add origin git@github.com: xinqiyang/yxqcodes. Git git push-u origin master
Existing git Repo?
 
CD existing_git_repo git remote add origin git@github.com: xinqiyang/yxqcodes. Git git push-u origin master
Importing a subversion Repo?
 
Click here
When you're done:
 
Continue

After these steps are completed, the code is added and submitted. For more information, see <read git in the diary>.

: Http://files.cnblogs.com/scotoma/git_tutorial.pdf

The last thing I want to talk about is that git has improved the space of 0.3g to put code. In fact, you must have succeeded when it fills up the space of 0.3g!

// Certificate //---------------------------------------------------------------------------------------------------------------------------------------

Supplement:

// Add new or modified files

Git add.

// Delete a document or file

Git Rm-R Document/filename

// Submit changes

Git commit-M "Commit MSG"

// If all the conditions are met, use

Git commit-A (files and folders cannot be added here)

The Sequence Chart of the previous development

Additional content:

20110410 exclude the file editing. Git/INFO/exclude in the directory and add the folder name to noproject/

Git ready git learning materials

Http://gitready.com/

Git command Learning

Http://www.kernel.org/pub/software/scm/git/docs/everyday.html

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.