user1830307
user1830307

Reputation:

Is it possible to upload local images to a GitHub repository directly?

Is it possible to upload local images to a GitHub repository web application directly?

I tried the first answer here (Uploading new files to a git repository directly through the github web application) with the "Create a new file here" answer... but I am unable to upload my locally-saved .jpg file.

I also tried to upload a file of the local .jpg images using command line doing commands like:

git add Pictures/*
git commit -m "Comment"
git push -u origin master

But I get errors (which I have Googled and failed at trying their suggestions), and as I am not comfortable with command-line, I wanted to know if there was a way to directly upload these locally-saved images to the GitHub web application GUI.

Thank you.

Upvotes: 2

Views: 2208

Answers (1)

Abhijit Gaikwad
Abhijit Gaikwad

Reputation: 3162

Apparently your local branch may be out of sync with your tracking branch.

Depending on project rules and your workflow you might also want to use

git pull --rebase.

Upvotes: 2

Related Questions