add images in readme in github

How to Add Images to on GitHub

GitHub is a popular cloud-based service to store git repositories on the cloud. It is used extensively by open source community to create and share software and documents with others. Most of these repositories have a readme file that contains details about the repository contents. They generally contain text-based information. Sometimes you may want to add images to on GitHub. In this article, we will learn how to add images to on GitHub.

How to Add Images to on GitHub

Here are the steps to add images to on GitHub. You can easily do it using the following markdown.

![alt text](http://url/to/img.png)

The above tag will create an image with source URL pointing to the HTTP URL you have mentioned above. You can use HTTPS instead of HTTP URL. You can also use different type of image file formats such as PNG, GIF, etc. as per your requirement.

If the image is present in your repository itself, then you can replace the above HTTP URL with a GitHub repository URL.

![alt text]([username]/[reponame]/blob/[branch]/image.jpg?raw=true)

In this article, we have learnt how to add images to file in GitHub.

Also read:

How to Cache HTTPS Credentials in Git Repository
How to Change Author & Committer Name & Email in Git
How to Clone Subdirectory in Git
How to Get Remote URL of Local Git Repository
How to Remove File from Git History

Leave a Reply

Your email address will not be published.