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
- Right-click on the file you want to upload to open Git
- Git config –global user.name “your name
- Git config –global user.email
- Git init: create a repository for your project
- git add .
- Git commit -m create a new repository on Github
- Git remote add origin github.com git remote add origin github.com
- git push origin master
Git pulls online projects
- Right-click “Git Bash” where you want to pull the file
- Git clone + git clone
Git submission code
- Git add. If it is the first commit, git add. If it is not the first time git status
- Git commit -m
- Git pull
- Git push
Git wants to go back to a previous version
- Git log
- Git reset –hard HEAD^
Tips Git and little turtle use together more with oh