Reconnect
Reconnect

Reputation: 41

How can I upload code on Github without installing Git on my laptop?

I want just to upload code on Github so that it can be publically available in the form of URL. So can it be done without installing Git ? If it can be , can anybody please mention the steps. Thanks in advance.

Upvotes: 2

Views: 11940

Answers (5)

Yogesh Badke
Yogesh Badke

Reputation: 4597

Major problem is that currently there is no web interface available to create master branch in newly created repo. Here is alternate option.

  1. Find empty repo having master branch like this
  2. Fork this repository using 'Fork' button
  3. Upload files by clicking on 'Upload Files' button or simply follow this tutorial
  4. You can also change repository name from 'Settings' tab of this repository

Upvotes: 0

Sandor Torok
Sandor Torok

Reputation: 1

You could use GitHub's Api. Assuming you have already a repo, you can make commits via HTTP POST requests. Take a look on this link: https://developer.github.com/v3/git/commits/#create-a-commit

You might need some additional steps, like authentication first, so I recommend to see the GitHub's API complete documentation here: https://developer.github.com/v3/

Upvotes: 0

arilence
arilence

Reputation: 506

GitHub added a feature that allows uploading files through the website.

Here's their blog post with the details

It involves going to your repository and clicking on the button 'upload files' near the clone button.

Upvotes: 8

abhayendra
abhayendra

Reputation: 187

use this URL according to your account (after login)

https://github.com/yourname/yourrepositoryname/upload/master

and then drag and drop your files

Upvotes: 4

Matthieu Moy
Matthieu Moy

Reputation: 16587

Each GitHub repo has a "Download ZIP" link.

Upvotes: -3

Related Questions