Github pushes the local folder to the remote built warehouse

1. Open the folder

insert image description here

2. Click the right mouse button in the blank space and select git bash to open

insert image description here

3. Make this directory a directory that git can manage [git init]

4. Add all files to the temporary storage area [git add . ]

5. Submit the files in the temporary storage area to the local warehouse [git commit -m "commit information written by myself"]

6. Associate the remote library [git remote add origin remote warehouse address]

7. Push to the remote library [git push -u origin master] (the latter master is the branch name, you can decide which branch to push to)

insert image description here

Here it is successfully solved! ! ! You can go to the remote warehouse to see if the code is successfully uploaded

Guess you like

Origin blog.csdn.net/DarlingYL/article/details/126386369