1. Use final break (terminal), CD to desktop. directive: CD desktop$ CD desktop/
2. Clone the project. directive: Git clone Project address $ git clone Https://github.com/liuhuakun/BrushShots.gi3. After cloning succeeds, a folder for your project name is generated on the desktop. CD to the folder directory. Then copy the Code (project) file that you want to upload into this folder. 4. Initialize the Git repository. directive: Git init$ git init5. Add files to the Git repository. directive: Git Add. git Add.
6. Submit to the local source repository and attach the comment. directive: Git commit-m "write comment" $ git commit-m "Demo" 7. Commit to a remote code repository. directive: Git Remote Add origin project address $ git Remote add Origin https://github.com/liuhuakun/BrushShots.git
?? :If the error says that the remote repository already exists, remove the remote repository first. directive: Git remote RM Origin$ git Remote RM origin
8. Push to the server. directive: Git push-u Origin master$ git push-u Origin Master
Add a picture description to the Readme:
- When you move the Code (project) file that you want to upload to the Clone folder, create a folder in the Clone folder that holds the picture, and move the picture to that folder.
- Fetch the URL of the picture.
3. Edit the Readme file! [Picture Description 1] (Https://github.com/liuhuakun/BrushShots/blob/master/1.PNG)
Code uploads GitHub and adds images to the Readme