- GitHub account
- GitHub access to a Massive Wiki GitHub repository
- Install GitHub Desktop App from https://desktop.github.com
Install Obsidian from https://obsidian.md
Install the Obsidian-Git plugin
Enabling Obsidian-Git brings up a message requiring installation of command line developer tools. Select "Install ".
Connect Obsidian to a Massive Wiki repository
Set up GitHub Personal Access Token credentials to allow saving new and edited wiki files to the GitHub repository.
Using a GitHub Personal Access Token to resolve the
fatal: could not read username for 'https://github.com'
error when first pushing changes to GitHub.
How to do that
Use a browser and login to your GitHub account.
GoTo " Account Settings".
on "Account Settings" page select "Developer Settings" from the LeftSide buttons.
on "Developer Settings" page select "Personal access tokens" button.
on "Personal access tokens" page select "Generate new token" button.
on "New personal access token" page
The final steps involve adding information to the
.gitconfig file and creating a
.git-credentials file to hold the personal access token just generated.
Setting up git credentials for Massive Wiki use.
First, open a Terminal window (Terminal is found in the /Applications/Utilities/ directory) Verify that a .gitconfig file has been created (when you installed GitHub Desktop and logged into GitHub)
$ ls .gitconfig
will print the file name ".gitconfig" if it exists
Second, use git commands to set up using the personal access key (this command says credentials are stored in a local file named ".git-credentials").
$ git config --global credential.helper store
Third, create the credential file to hold the personal access key. Copy the personal access key generated in GitHub to the clipboard (if you did not do that above) Now, type the following in the terminal window replacing "YourGitHubUserName" with your actual GitHub user name:
$ echo "https://YourGitHubUserName:$(pbpaste)@github.com" > .git-credentials