Posts

Showing posts from November, 2022

GIT / GITHUB : Authentication

Image
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Using Personal Access Tokens with GIT and GitHub  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ The Access token is been generated from the GitHub repository. Tried ping  $ ping github.com  This was giving an error. So I added couple of name servers in the /etc/resolv.conf   /etc/resolv.conf nameserver      63.xxx.x.xx nameserver      63.xxx.x.xx And now the ping was successful and now the clone worked. We recommend you use fine-grained personal access tokens to authenticate to the GitHub API. curl -u USERNAME:TOKEN https://api.github.com/user curl -u sbalakrishn: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 https://github.com/8x8/auto_pow-dns-rec-SRJ.git +++Finally this worked :  https://docs.github.com/en/rest/overview/other-authentication-methods Via personal access tokens curl -u USERNAME:TOKEN https://...

GitHub : Troubleshooting

 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ On GitHub had the following error There isn’t anything to compare. master and feature/godsword are entirely different commit histories. git checkout [BRANCH]    git branch master [BRANCH] -f    git checkout master    git push origin master -f   -- Last command worked   Removing remote repository branch [root@cmptest01-cc dns-new-one]# git push origin --delete feature/godsword To https://github.com/8x8/testing-powerdns-ansible-SRJ.git