Install and use SmartGit in Windows

Source: Internet
Author: User
Tags git client

Install and use SmartGit in Windows

Today, Git is booming, and I want to use Git to manage code written in my spare time. For more information about Git, see Ubuntu12.04 Git server configuration.

Let's get started here.

1. Download the Git Client

1. Go to the Git Official Website: http://git-scm.com/to download the client.

The client on the official website is in the form of command line, which is too difficult for new users like me. We need to create a graphical interface, namely the SmartGit below.

2. SmartGit: http://www.syntevo.com/smartgithg/, download the target client of the system, and I am from windows.

Ii. Installation

There are only two points to note during installation

1. license: three types of licenses are available for trial, paid, and non-commercial use. You can select one based on your individual needs.

2. Hosting Providers: I use GitHub. Of course, you must first have a GitHub account. Please go to https://github.com/to apply for one.

Create a personal technical blog via GitHub

Share practical GitHub tutorials

For example, enter your GitHub Account in the Account, click the Token button, and generate a Token as instructed to connect to GitHub.

Iii. Project Creation

1. log on to the GitHub website, find new repository in the lower right corner, and create a new project.

2. Fill in the following information based on actual conditions:

The following is the project I created.

3. Use SmartGit to clone it.

Open SmartGit and select Repository> Clone from the menu.

Enter the Repository URL: the address provided by GitHub. Find the Project address on the right of the Project page just created and copy it.

Next, select a local folder for the project.

Click Finish. Wait a moment. The Output information tells us that OK is done. Open the selected local folder.

4. create, modify, and submit operations

Create a txt file in the folder, enter some text, and save it.

Go back to SmartGit and find that there is one more file in the Files form.

Right-click the file and select Commit. The submit form is displayed.

Commit Message is a comments of the submitted version and must be filled in.

Commit is committed to the local Git repository.

Commit & Push is committed to the local Git repository and to GitHub.

After the Commit operation is successful, the Files in the Files form are missing. There are five buttons in the upper-right corner of the Files form to set which Files to display.

We open test.txtand input some text to save it, find that test.txt is changed to the red Modified state, and then commit.

Right-click test.txt and select Log to view the two submission records.

Right-click the record of the first version and select Reset to return to this version. There are three Reset modes available: mixed, soft, and hard.

Mixed: The workspace remains unchanged, the reset temporary storage area, and the current reset Branch

Soft: The workspace remains unchanged, the temporary storage area remains unchanged, and the reset current Branch

Hard: reset workspace, reset temporary storage area, reset current Branch

PS: For details about the workspace, temporary storage area, and current branch, refer to the Git tutorial of Liao Xuefeng-workspace and temporary storage area.

To sum up, this is just a reference for the initial use of SmartGit. Everything is difficult at the beginning, and we will continue to explore it in daily use.

How to install SmartGit/HG 6.0.0 for Ubuntu and its derivative versions

SmartGit/Hg Chinese garbled Problem Solution

SmartGit details: click here
SmartGit: Click Here'

This article permanently updates the link address:

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.