Document directory
- 1. Set up git
- 2. Create a repo
1. Install the GIT Tool
Tortoisegit is the best software to use git in windows, similar to tortoisesvn.
: Https://code.google.com/p/tortoisegit/
Installation sequence: Recommended order: Install tortoisegit first
-- First install tortoisegit and then install msysgit
Use git bash after installation.
Git Bash is a command line tool in windows.
Based on the msys GNU environment, a git distributed version control tool is also used for git.
Ii. Concepts about git and GitHub
Repository [ri'p? Zit? Ri] knowledge base, version library, and code base
Collaborate [k? 'L? B? RET] cooperation, collaboration, collaboration
Git is a fast and efficient distributed version control system, perfect for collaborative software development.
GitHub is a good way to work with others.
Fork Branch
Brunch Branch
3. Host code 1.set up git in GitHub
1. Configure username and email
Git config -- global user. Name"Your name here"
git config --global user.email "your_email@example.com"
2. Configure git and gitbash to display Chinese characters normally
Http://blog.csdn.net/son_of_god/article/details/7341928
2. Create a repo
First create a new repo on GitHub, such as mytools, and then operate in git bash
Mkdir mytools
CD mytools
Git init
Touch readme
-- Edit readme file
Git add readme
Git commit-M' The first commit for git'
Git remote add origin https://github.com/FrankFan/MyTools.git
Git push origin master
Note:
Differences between touch and cat
Cat is generally used to view the content of a text file.
Touch can create an empty file and modify the file creation time.
Update 2013-05-17
1. to delete an object, use
git remove READ
After the file is deleted, git add <File> does not delete the file in the index. You must run the-a command:
git commit -a -m 'now file READ is removed'
2. Git clone
Copy the source code library on GitHub to the local machine:
git clone https://github.com/FrankFan/DatabasePicExporter