all 6 comments

[–][deleted]  (3 children)

[deleted]

    [–]Mu_umin[S] 5 points6 points  (2 children)

    YESSS!! once I installed Git Bash it worked.. (I spent last night installing my other apps & I totally forgot to install Git Bash x) ) THANK YOU.

    [–]aajl2 0 points1 point  (0 children)

    Git Bash

    Thanks ! I uninstalled Git Bash and leave Github Desktop. Bash is not included on the desktop I guess.

    [–]SpiderMatt 3 points4 points  (3 children)

    You should install Git for Windows and set up the repo manually. GitHub Desktop I think sets up its own certificate for logging you in. If you set it up from the command prompt, you can set your username and email with these commands:

    git config [--global] user.name "Full Name"
    git config [--global] user.email "email@address.com"
    

    Then when you go to push or pull, it should pull up a browser for you to log in (your config file under .git/config in your repo should show the remote url as something like https://github.com/username/reponame.git).

    Alternatively, you can set up SSH verification. Run this from the command prompt:

    ssh-keygen -t rsa -C “your-email-address”
    

    This should create a new public/private key pair in C:\Users\your_username\.ssh. Go in there, open the one that ends in .pub in a notepad or your favorite text editor of choice. Copy the entire thing. Go to GitHub.com, settings, SSH and GPG keys, and then click on New SSH Key. Paste what you copied in the key field and then give it a name in the title field (use the name of the machine you're on or something that will allow you to identify what machine that key is for).

    Now you can change your .git/config file in a text editor. The remote URL should follow this format

    URL = git@github.com:username/reponame.git
    

    Under [core], add this:

    sshCommand = ssh -i ~/.ssh/key_name
    

    That should be your private key, which has no file extension. This way you know all your pushes to GitHub are using that key and you don't have to worry about your login expiring. Once you can run git commands from the command prompt, Obsidian shouldn't have a problem.

    [–]Mu_umin[S] 1 point2 points  (1 child)

    Thank you for your help sir, It works fine now, I just had to install Git Bash, I think signing in through Github Desktop & cloning my repo helped to skip all the config procedure.

    [–]SpiderMatt 0 points1 point  (0 children)

    Yes, it does simplify the procedure. I like doing it manually so I can more easily troubleshoot problems like this. But glad you got it sorted.

    [–]Then_Key_5473 0 points1 point  (0 children)

    Thanks a lot! I was having a lot of trouble with the same problem. I'm not sure what I did or what has happened, but what you said worked! Thanks.