Step 1: Install GitHub easily:
- Register as a GitHub user
- First download the GitHub Windows client;
- After the installation is complete, open the gitshell window. Here, the client has set the user name and password for you during installation and uploaded the public key to GitHub. You can directly use it without configuration;
PS: Use
Git config -- Global-l
You can view it.
- Let's take a look at common git commands. Here, I strongly recommend Dr. Liao Xuefeng's blog. I won't tell you that I just followed him.
However, if you think that Mr. Liao is too much to read, and you only want to write a blog or something, read the following content.
Git command
.
Play with markdown in sublime
- Install sublime ).
- Install the sublime markdown plug-in and set syntax highlighting (how to install the plug-in)
- Note: The following sublime is a very elegant text editor that can read all the code.
Step 2: save local notes to GitHub
If the previous two steps have been completed seriously, you have done at least the following:
- Registered GitHub account and created a repository, such as my: https://github.com/jiuyuehe/mdNote
- Write a markdown instance on sublime and use the shortcut key
M
The markdown preview is enabled.
Use git name to publish local notes to remote [command form]
Git clone https://github.com/jiuyuehe/mdNote [change to the account you created]
Copy the Notes to the corresponding directory,
Git status [view status] git Add. [add all changed files] git commite-M "Add a new Note" [Submit] git push-u mdnote master [push to GitHub]
Don't forget to post your blog to cnblogs. In fact, I did this because I could easily write markdwon and send it to the blog Park.