Recent

Author Topic: Need help with the github login system...  (Read 806 times)

cdbc

  • Hero Member
  • *****
  • Posts: 1026
    • http://www.cdbc.dk
Need help with the github login system...
« on: February 16, 2021, 02:26:55 pm »
Hi
Are there any github savvy people here, who knows about the conversion from password to tokens???
I've done the walk-through on github, but can't get it to work?!?
Funnily enough it still works with password?!?
A bit of help is needed, please  :)
Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

bytebites

  • Hero Member
  • *****
  • Posts: 633
Re: Need help with the github login system...
« Reply #1 on: February 23, 2021, 02:30:37 pm »
You don't tell what fails.

git push https://TOKEN@github.com/user-name/repo.git

dbannon

  • Hero Member
  • *****
  • Posts: 2786
    • tomboy-ng, a rewrite of the classic Tomboy
Re: Need help with the github login system...
« Reply #2 on: February 24, 2021, 04:34:56 am »
It will work with passwords for a few months yet. Just gives you a warning. You have not mentioned the way you have chose to comply with github's demand ....

I choose to use ssh keys for mine, quite easy to setup, just upload your public key and change the remote to a git: prefix rather than a https: one

Like this -
Code: Pascal  [Select][+][-]
  1. $ cd ~/Pascal/tomboy-ng
  2. $ git remote -v
  3. > origin https://github.com/tomboy-notes/tomboy-ng.git (fetch)
  4. > origin https://github.com/tomboy-notes/tomboy-ng.git (push)
  5.  
  6. $ git remote set-url origin git@github.com:tomboy-notes/tomboy-ng.git
  7. $ git remote -v
  8. > origin git@github.com:tomboy-notes/tomboy-ng.git (fetch)
  9. > origin git@github.com:tomboy-notes/tomboy-ng.git (push)
  10.  
The url now starts with 'git', seems thats aka ssh ...

Davo
Lazarus 3, Linux (and reluctantly Win10/11, OSX Monterey)
My Project - https://github.com/tomboy-notes/tomboy-ng and my github - https://github.com/davidbannon

cdbc

  • Hero Member
  • *****
  • Posts: 1026
    • http://www.cdbc.dk
Re: Need help with the github login system...
« Reply #3 on: February 24, 2021, 10:14:25 am »
Hi
@bytebites:
Quote
git push https://TOKEN@github.com/user-name/repo.git
,got my first token revoked  :( :D
Now trying to wrangle a new one  ::)

@dbannon:
Dono much 'bout ssh, apart from headless servers, so i'll just stick to https for now.
Other people can get it to work... 

Edit: Github community has the answer, just needed to convert from binbows to linux and "Bob's your uncle"  ;)

Regards Benny
If it ain't broke, don't fix it ;)
PCLinuxOS(rolling release) 64bit -> KDE5 -> FPC 3.2.2 -> Lazarus 2.2.6 up until Jan 2024 from then on it's: KDE5/QT5 -> FPC 3.3.1 -> Lazarus 3.0

 

TinyPortal © 2005-2018