How to Add GIFs on README .md File in a GitHub Repository?
Git is a free and open-source distributed version control system designed to handle everything from small to very large projects. Github is a highly used software that is used for version control. It is more helpful when more than one person is working on a project. GIF as we all know stands for Graphics Interchange Format is a bitmap image format. This format supports 8 bits per pixel.
Proceeding further Git and Github basics are a must pre-requisite to go where here we will be getting how we can add GIFs in the README.md file of a GitHub repository.
Step 1: First of all, create a GitHub repository on Github, for illustration purposes we are taking a custom repository as depicted below:
For example, We have created a Github repository with the name GeeksForGeeks.
Step 2: Upload the GIF in the repository which you want to add in README.
For example, custom GIF have been uploaded in above repository named “Geeks For Geeks”.
Step 3: Click on the “Add a README” button.
A new window will open.
Step 4: Open the added GIF file in your repository and copy the URL.
Step 5: Now paste it inside your README.md file with command below as follows:
Example: Custom readme in the directory
1.1 Click on the commit changes button at the bottom.
1.2 Your GIF will appear along with other README.md file contents.
Note: It is recommended to use GIFs size to be less than 30 MB.
Share your thoughts in the comments
Please Login to comment...