How do I use GitHub Saver?

467 views
Skip to first unread message

leeand00

unread,
Oct 16, 2019, 2:32:15 PM10/16/19
to TiddlyWiki
I put in the password, my account name, the repository, the branch etc...and when I click save, it still saves to my desktop and not GitHub.

I don't want to use any of that 2 factor auth stuff, that's overkill.

Is there another setting I have to change (in TW5 or my browser to get that to work)?

It sounds like a really great feature.

Mark S.

unread,
Oct 16, 2019, 2:35:25 PM10/16/19
to TiddlyWiki
Is your path to target file (e.g. /wiki/) filled in?

When I tried it, I found that *something* has to go in that box, even if it's just the root "/"

Good luck!

leeand00

unread,
Oct 16, 2019, 5:44:00 PM10/16/19
to TiddlyWiki
It worked!  Wow!  That's great stuff!

Is there a way I can change the commit message when I click save?

(Maybe that's asking too much, I can always rebase it...or git append to change the commit message)

leeand00

unread,
Oct 16, 2019, 5:44:44 PM10/16/19
to TiddlyWiki
Also, does it save the password in plain text?  That would be bad.  Or do I have to type it back in again everytime?

HC Haase

unread,
Oct 18, 2019, 2:38:57 AM10/18/19
to TiddlyWiki
thanks Mark

I had the same problem.

Do anyone know if it is possible to save to local file AND to github (as backup) instead of choosing between them??

leeand00

unread,
Nov 3, 2019, 2:39:25 PM11/3/19
to TiddlyWiki
Is it possible to add a commit message?

Stephan Hradek

unread,
Nov 4, 2019, 12:24:13 PM11/4/19
to tiddl...@googlegroups.com


Am Sonntag, 3. November 2019 20:39:25 UTC+1 schrieb leeand00:
Is it possible to add a commit message?

$:/language/ControlPanel/Saving/GitService/CommitMessage

 
Found by using "Advanced Search" -> "Shadow" -> Paste in the current commit message.

Stephan Hradek

unread,
Nov 4, 2019, 12:26:37 PM11/4/19
to TiddlyWiki
Maybe you can create a tiddler with some action widgets to do that. Simply by remiving all the stuff for github save, saving and then restoring the stuff and saving again.

Stephan Hradek

unread,
Nov 4, 2019, 12:33:14 PM11/4/19
to TiddlyWiki


Am Mittwoch, 16. Oktober 2019 23:44:44 UTC+2 schrieb leeand00:
Also, does it save the password in plain text?  That would be bad.  Or do I have to type it back in again everytime?


Notes

  • The Git service password is stored persistently in browser local storage. Be sure to clear the password if using a shared machine. Using a personal access token for authentication offers an extra layer of security: if the access token is accidentally exposed it can be revoked without needing to reset the account password
Additionally:

I don't want to use any of that 2 factor auth stuff, that's overkill.

That's stupid - sorry ;) You should at least generate a "Personal access token" and use it instead of your valuable password.

In github click:

  • Your avatar in the upper right corner
  • Settings
  • Developer Settings
  • Personal access token
  • Generate new token
  • Give it a name
  • Choose "Repo"
  • Save it
  • Copy the generated token as your password into TiddlyWiki
Should it ever get lost you can easily revoke it.

Hiran Venugopalan

unread,
Oct 30, 2020, 5:38:23 AM10/30/20
to TiddlyWiki
Hi,

I tried this. But I am getting a XMLHttpRequest error code: 404
I have given username, PAT, repository, branch, path and file. But this is the error I am seeing.
On refresh, it shows default value + PAT stored, but everything else is shown empty.

Attaching screenshot.
Screenshot 2020-10-30 at 3.02.46 PM.png

Saq Imtiaz

unread,
Oct 30, 2020, 6:23:02 AM10/30/20
to TiddlyWiki
At first glance the repository name could be off.
It should be: 
GithubUsername/RepostioryName

saqimtiaz/streams

Hiran Venugopalan

unread,
Oct 30, 2020, 8:06:35 AM10/30/20
to tiddl...@googlegroups.com
Hi,

I followed GithubUsername/RepostioryName format only.
I then moved it to a folder and added /wiki/. but still got the same error.


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/UqFiDei4w5s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0284ed2b-f384-45b9-ba96-d75147bdcbc3o%40googlegroups.com.


--
Hiran Venugopalan | +91 9496 346 709

Mark S.

unread,
Oct 30, 2020, 10:34:21 AM10/30/20
to TiddlyWiki
This is just a guess, but I would try loading index.html or any file via the Github interface to your target directory (either / or /wiki/) . It might be that until you make the first entry in github there is no there "there", so you get a 404.

Hiran Venugopalan

unread,
Oct 30, 2020, 2:35:41 PM10/30/20
to tiddl...@googlegroups.com
I tried modifying my git repo and did a few pushes. Also tried multiple wikis at multiple locations, still the result is same. 404 error.

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/UqFiDei4w5s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

Eric Shulman

unread,
Oct 30, 2020, 2:42:34 PM10/30/20
to TiddlyWiki
On Friday, October 30, 2020 at 5:06:35 AM UTC-7, Hiran Venugopalan wrote:
I followed GithubUsername/RepostioryName format only. 
I then moved it to a folder and added /wiki/. but still got the same error.

In my GitHub Saver setup, I used the following:

Username = myusername
Personal Access Token = long alpha-numeric sequence
Target Repository = myusername/myusername.github.com
Target branch for saving = master
Path to target file = foldername
Filename of target file = index.html
Server API URL = https://api.github.com

Note that the Path to target file does NOT include leading or trailing "/"... just the folder name by itself

-e

Hiran Venugopalan

unread,
Oct 31, 2020, 1:20:40 AM10/31/20
to tiddl...@googlegroups.com
It worked.
I didn't provide access to 'create gist' with creating my Github PAT.
Now it's working fine, and I am using something called https://kebifurai.github.io/TiddlyResearch/
The only issue is it keeps giving XMLHttpRequest error code: 409, as autosave happens too frequently (i think)

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/UqFiDei4w5s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

TW Tones

unread,
Oct 31, 2020, 4:05:37 AM10/31/20
to TiddlyWiki
Just turn off autosave and use occasionally. 

Otherwise http://tiddlytools.com/timer.html has a timed autosave.

Tones



On Saturday, 31 October 2020 16:20:40 UTC+11, Hiran Venugopalan wrote:
It worked.
I didn't provide access to 'create gist' with creating my Github PAT.
Now it's working fine, and I am using something called https://kebifurai.github.io/TiddlyResearch/
The only issue is it keeps giving XMLHttpRequest error code: 409, as autosave happens too frequently (i think)

On Sat, 31 Oct 2020 at 00:12, Eric Shulman <elsd...@gmail.com> wrote:
On Friday, October 30, 2020 at 5:06:35 AM UTC-7, Hiran Venugopalan wrote:
I followed GithubUsername/RepostioryName format only. 
I then moved it to a folder and added /wiki/. but still got the same error.

In my GitHub Saver setup, I used the following:

Username = myusername
Personal Access Token = long alpha-numeric sequence
Target Repository = myusername/myusername.github.com
Target branch for saving = master
Path to target file = foldername
Filename of target file = index.html
Server API URL = https://api.github.com

Note that the Path to target file does NOT include leading or trailing "/"... just the folder name by itself

-e

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/UqFiDei4w5s/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages