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
 
<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] 
> <mailto:[email protected]>> wrote:
> Many thanks Jeremy!
> 
> I opened the https://tiddlywiki.com/prerelease/#Saving+to+GitHub 
> <https://tiddlywiki.com/prerelease/#Saving+to+GitHub>
> In control panel GitHub saver filled up required information 
> 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
>  
> <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 
>>> <https://github.com/Jermolene/TiddlyWiki5/issues/3890>
>>> 
>>> And the nice https://github.com/38911BytesFree/TiddlyWiki 
>>> <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 
>>> 
>>> Have GitHub Saver plugin? or
>>> 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 tiddl...@ <>googlegroups.com <http://googlegroups.com/>.
>>> To post to this group, send email to tiddl...@ <>googlegroups.com 
>>> <http://googlegroups.com/>.
>>> Visit this group at https://groups.google.com/group/tiddlywiki 
>>> <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 
>>> <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 
>> <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 
>> <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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <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 
> <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] 
> <mailto:[email protected]>.
> To post to this group, send email to [email protected] 
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/tiddlywiki 
> <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 
> <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/C7BCAD35-8E27-40A5-8E04-A944390B067C%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to