Git download and installation

1. Download git [official website https://git-scm.com/] (if you have a slow Internet connection, please go to the domestic mirror) and use the default option to install it.

After the installation is complete, go to “Git” -> “Git Bash” in the start menu or right click on the folder to appear “Git Bash”.

Git local files are uploaded to Github

  1. Right-click on the file you want to upload to open Git
  2. Git config –global user.name “your name
  3. Git config –global user.email
  4. Git init: create a repository for your project
  5. git add .
  6. Git commit -m create a new repository on Github
  7. Git remote add origin github.com git remote add origin github.com
  8. git push origin master

Git pulls online projects

  1. Right-click “Git Bash” where you want to pull the file
  2. Git clone + git clone

Git submission code

  1. Git add. If it is the first commit, git add. If it is not the first time git status
  2. Git commit -m
  3. Git pull
  4. Git push

Git wants to go back to a previous version

  1. Git log
  2. Git reset –hard HEAD^

Tips Git and little turtle use together more with oh