Skip to content

Instantly share code, notes, and snippets.

@NusrathCassim
Created March 31, 2024 15:10
Show Gist options
  • Save NusrathCassim/aced1638a435a53d0451ec34e0ecd4d0 to your computer and use it in GitHub Desktop.
Save NusrathCassim/aced1638a435a53d0451ec34e0ecd4d0 to your computer and use it in GitHub Desktop.
Adding image/gif to Gist through Git Bash

Adding images directly without the fuss of markdown files.

Fisrt you have to create a new gist, and add a temporary file (txt or md) then publish it

Create a folder and give a name, in my case its "Gist Mee"

1. then right-click -----> More option------>Open Git-Bash here

image

2. After that, go copy the link from gist you've already created

image

paste it on the git-bash with the command ------- $ git clone (your link)

if its successful you will be able to see something like this

image

3. now copy the part between github.com/ and .git

paste it on the git-bash with the command ------ $ cd (copied section)

image

4. Now Drag and drop the image/gif file into your folder

ll

5. Now $ git add .

image

5. Now $ git commit -m "A message"

image

6. Now $ git push origin (branch name) ---- in my case its main

image

Now your image/gif will be there in the gist

image

you can delete or do whatever you like with the temporary file we made earlier...peace✌️😺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment