Hi Jeremy,
I uses a personal access token, I created one for experimenting this new 
feature!
But it is not clear what kind of permissions TW needs to save on GitHub.
I tried different forms.

--Mohammad



On Tuesday, April 9, 2019 at 9:13:46 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Mohammad
>
> I think you need to create a first version of the file on GitHub before 
> being able to push subsequent versions from your wiki.
>
>
> You shouldn’t need to do that, it should work for saving to a brand new 
> path within the repo.
>
> The 401 error code means “Unauthorised”, so I think there’s a problem with 
> the credentials you’re supplying. Are you using a personal access token? 
> See here:
>
>
> https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line
>
> Best wishes
>
> Jeremy
>
>
> Cheers,
> -- Xavier Cazin
>
>
> On Tue, Apr 9, 2019 at 1:29 PM Mohammad <[email protected] 
> <javascript:>> wrote:
>
>> Many thanks Jeremy!
>>
>>
>>    1. I opened the https://tiddlywiki.com/prerelease/#Saving+to+GitHub
>>    2. In control panel GitHub saver filled up required information 
>>    3. Click save and I got this error: 
>>
>> XMLHttpRequest Error 401
>>
>> Note: I have downloaded a copy of 
>> https://github.com/Jermolene/TiddlyWiki5/commit/aa5eaa98fcb8658dbc2b93476c2e09c9207439d8
>>  
>> <https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2FJermolene%2FTiddlyWiki5%2Fcommit%2Faa5eaa98fcb8658dbc2b93476c2e09c9207439d8&sa=D&sntz=1&usg=AFQjCNGC24_zncHX0h7Qp7TYuJgXRvlxuA>
>> renamed it to *index.html* and uploaded to a public repository
>>
>> --Mohammad
>>
>>
>>
>>
>>
>>
>> On Tuesday, April 9, 2019 at 1:30:16 AM UTC+4:30, Jeremy Ruston wrote:
>>>
>>> I’ve made a first cut at a saver to save directly to GitHub:
>>>
>>>
>>> https://github.com/Jermolene/TiddlyWiki5/commit/aa5eaa98fcb8658dbc2b93476c2e09c9207439d8
>>>
>>> It works similarly to the upload saver that is used with TiddlySpot: 
>>> once configured in control panel it takes over saving duties. It can save 
>>> to an arbitrary filename, path, branch and repository.
>>>
>>> We still need a beginners tutorial, but there’s some docs here:
>>>
>>> https://tiddlywiki.com/prerelease/#Saving%20to%20GitHub 
>>> <https://tiddlywiki.com/prerelease/#Saving+to+GitHub>
>>>
>>> This is a single file saver, but there’s a lot of potential with this 
>>> API for other configurations, in particular supporting single file wikis.
>>>
>>> As ever, please reply here with any questions or comments,
>>>
>>> Best wishes
>>>
>>> Jeremy
>>>
>>>
>>>
>>> On 8 Apr 2019, at 17:43, Mohammad <[email protected]> wrote:
>>>
>>> Many Thanks Jeremy!
>>> TW deserves to have that capability
>>>
>>> Best
>>> Mohammad
>>>
>>> On Monday, April 8, 2019 at 3:14:18 PM UTC+4:30, Jeremy Ruston wrote:
>>>>
>>>> Hi Mohammad
>>>>
>>>> Referring to: https://github.com/Jermolene/TiddlyWiki5/issues/3890
>>>>
>>>> And the nice https://github.com/38911BytesFree/TiddlyWiki
>>>>
>>>>
>>>> That is very interesting, I'm sorry I missed it when it was first 
>>>> released. More to the point, I missed the existence of the GitHub APIs 
>>>> that 
>>>> it uses for saving files. When I get a chance I shall try to spin up a 
>>>> GitHub Pages saver for TW5.
>>>>
>>>> Best wishes
>>>>
>>>> Jeremy.
>>>>
>>>>
>>>> To save Tiddlywiki directly to GitHub Pages, is it possible to 
>>>>
>>>>
>>>>    1. Have GitHub Saver plugin? or
>>>>    2. Update the current classic TW to TW5?
>>>>
>>>>
>>>> --Mohammad
>>>>
>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "TiddlyWiki" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at https://groups.google.com/group/tiddlywiki.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/tiddlywiki/d2c2a41a-f9bf-42e6-8fce-11534ebfaf48%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/tiddlywiki/d2c2a41a-f9bf-42e6-8fce-11534ebfaf48%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/tiddlywiki.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/bd4a11d5-784d-4b72-a269-8ce8d19bc9be%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/tiddlywiki/bd4a11d5-784d-4b72-a269-8ce8d19bc9be%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/tiddlywiki.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/bd6b8775-72c2-4b6b-b795-add3c075a96b%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/bd6b8775-72c2-4b6b-b795-add3c075a96b%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/CADeSwYOzf8krHrqmGNWaA3GEra4WFUHD2n1SD%2B6FrKn%2BqiHjpQ%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/tiddlywiki/CADeSwYOzf8krHrqmGNWaA3GEra4WFUHD2n1SD%2B6FrKn%2BqiHjpQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/da0473c7-40a5-4aab-bbe0-02633792f1a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to