Git graphic Tutorial: Uploading GitHub projects from scratch,
I. Install Git
Download and install the client from the Git Official Website
2. Create a code repository locally
Find Git Bash in the Start menu and open
Configure identity
git config --global user.name "pengkv"git config --global user.email "pengkv@126.com"
Verify whether the configuration is successful
git config --global user.name git config --global user.email
Go to the local project directory
Create a code repository
git init
Iii. Submit local code
Submit a single file
git add app
Submit all files
git add .
Submit description information (must be submitted, otherwise it is considered invalid)
git commit -m "First commit"
4. Submit to GitHub
Create an empty project on Github
Upload code
git remote add origin https://github.com/pengkv/GitStar.gitgit push -u origin master
After submission is successful