Code uploads GitHub and adds images to the Readme

Source: Internet
Author: User

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:// 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
?? :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:
    1. 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.
    2. Fetch the URL of the picture.
3. Edit the Readme file! [Picture Description 1] (Https://

Code uploads GitHub and adds images to the Readme

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.