Is it possible to edit the file and transfer github / bitbucket from the browser

I want to use the editor in a browser and save to github without a server. Just like a text editor in github / bitbucket can a new file and save it

I want to know if there is a REST API of these 2 services to easily commit a file like this

Or a git library in js that can work without having to extract all the files to our machine

edit:

After 2018, both services are already exposing their APIs. This question is out of date

+7
source share
6 answers

If you are looking for an online code editor that you can connect to github or bitbucket, you can look at them:

If you want to develop such an editor yourself, you can simply start with the REST API documentation from github or bitbucket:

And just select the javascript REST library of your choice to interact with these APIs.

For Github: you can use content resources to create / update / delete files.

For example, this section explains how to update a file .

+5
source

Bitbucket user is here, you can CHANGE / CREATE your files in the browser.

https://gyazo.com/ff3cb58bcc1cceda0306037989f32ab1

+4
source

Bitbucket has an online editor where you can immediately modify the file and commit it. Check here .

+2
source

See the official answer here:

TL; DR: They are working on expanding their API and responded to a problem that was discovered in 2013.

EDIT: The endpoint for this is now available!

+1
source

You can install benweet/stackedit , a javascript markup editor on your local machine.

Like mentioned in README ,

Publish your Markdown doc on GitHub

(For more, see Publication )

https://raw.githubusercontent.com/benweet/stackedit/master/public/res/img/menu.png

0
source

You can use the Power Editor for Bitbucket to edit and send code from the browser to bitbucket.

0
source

All Articles