Smartgit Preliminary Use
In Git's heyday today, I also want to use Git to write my spare time code to manage a bit.
What git does here is not much to say, specifically see Liaoche's git tutorials, progit and more in a detailed tutorial.
We are here to get started directly.
First, download the GIT client
1, GIT official website: http://git-scm.com/, download the client.
The client on the official website is in the form of a command line, which is too difficult for a novice like me. We need to have a graphical interface, which is the following smartgit.
2, smartgit:http://www.syntevo.com/smartgithg/, download the system corresponding to the client, I am windows.
Second, installation
Only two points to note in the installation
1, License: There are trial, pay, non-commercial use three kinds, according to the individual situation choice.
2, Hosting Providers: I use GitHub. Of course you need to have a GitHub account first, go to https://github.com/to apply for one.
Fill in your GitHub account with the following image, then click the token button and follow the instructions to generate a token to connect to GitHub.
Iii. use of construction projects
1. Login to the GitHub website and find new repository in the lower right corner to create a project.
2, specific as follows, fill in according to the actual situation
Here are the projects I created.
3, use Smartgit to Clone it down to open smartgit, select Repository→clone in the menu
Fill in the repository Url:github provide us with the address, in the project just built on the right side of the page to find the project address and copied over.
Next, select a local folder for the project.
Click Finish, wait a moment, the information in the output tells us that OK is done. Open the local folder you just selected and see.
4, new, modify, submit and so on. Create a new TXT file in the folder and enter some text to save it.
Back in Smartgit, one more file was found in the files form.
Right click on the file and select Commit, the submission form appears.
The commit message is a comment for the submitted version and must be filled in.
Commit is committed to the local git repository.
Commit&push is submitted to the local Git repository and submitted to GitHub.
After the commit succeeds, the file in the files form is missing. There are 5 buttons in the upper-right corner of the files form to set which files are displayed.
We open test.txt and then enter some text to save, found Test.txt into a red modified state, and then commit.
Right-Test.txt, select Log, you can see two times the commit record.
Right-click on the first version of the record and select Reset to return to this version. Reset has three modes to choose from, mixed, soft, hard.
Mixed: Workspace unchanged, reset staging area, reset current Branch
Soft: Workspace unchanged, staging area unchanged, reset current Branch
Hard:reset workspace, reset staging area, reset current Branch
PS: How to understand the workspace, staging area, current branch, refer to Liaoche git tutorial-workspace and Staging area.
Summarize it, this is only a smartgit preliminary use reference, everything beginning difficult, the next is in the daily use to continue groping it.