First step: Find the location where you want to upload the project
Then right-click on Git bash
Enter GIT init initialization
The. git file appears in the warehouse
There's a pit here. Git default hide no changes show all files. git files do not move!!!
Enter git Add. (Add a point can be uploaded all at once)//can not only with a single file, but also with the wildcard, you can follow the directory. At a point, all the untraceable files in the current directory are all Add.
You can enter GIT status//To see if the file is added to staging area
Enter git commit-m "upload file"//Add comment submit to Warehouse
Enter git remote add Origin Https://github.com/Kevinl7/xxxxx.git Association to the remote repository
Enter Git push-u origin master//upload to remote repository fill in the account name and enter the password
OK, you can go to GitHub to see your uploaded files.
There are pits here!!!
If the warehouse has nothing to see if its own warehouse is empty.
Git is not able to manage empty folders, there must be files in the folder to add!!!!!
Create a file in your own warehouse ...
Notice the creation of the pit came again ...
After you create a file you need to pull to the local in the execution of push or fail!!!
Enter git pull--rebase Origin master
In the execution Push-u Origin master
This is OK!!!
Git local push remote step and middle met pit