Use tortoisegit in Windows to submit code to GitHub

Source: Internet
Author: User
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

 

 

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.