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