-5 C
New York
Sunday, February 23, 2025

Buy now

spot_img

Quick Github Tutorial

This is a very quick github tutorial, cutting every single corners here…

TLDR; yes!

 

Quick Github Tutorial
Quick Github Tutorial

GitHub personal access token

To generate a Generate a GitHub personal access token and fix the ‘support for password authentication removed’ error, follow these steps:

  1. Log into GitHub with your username and password
  2. Navigate to your GitHub account settings
  3. Scroll down and click ‘Developer settings’ in the list of links to the left
  4. Click the Personal access tokens link
  5. Click the ‘Generate new token’ button
  6. Add a ‘Note’ to describe the tokens usage
  7. Set an expiration date for the GitHub personal access token
  8. Select the appropriate authentication scope
  9. Click the ‘Generate token’ button

Quick github commands to setup

Setup username and store password

git config --global user.name myusername
git config --global user.email myemail@gmail.com
git config --global credential.helper store

Pushing Files

git init
git add .
git commit -m 'Initial Commit' -a

Add an empty git

git remote add origin https://github.com/username/dns-query-from-file.git
git remote -v
git push origin master

One file only

git commit dns-query-from-file.sh
git push origin master

Clear git history

rm -rf .git

Recreate the repos from the current content only

git init
git add .
git commit -m "Initial commit"

push to the github remote repos ensuring you overwrite history

git remote add origin https://github.com/username/dns-query-from-file.git
git push -u --force origin master
blackMORE
blackMOREhttp://www.blackmoreops.com
blackMORE Ops is dedicated to How to, Guides, Security features and Tips and Tricks for Linux OS. Thank you for visiting us and follow us here www.blackmoreops.com.

Related Articles

1 COMMENT

Leave your solution or comment to help others.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Stay Connected

0FansLike
0FollowersFollow
0SubscribersSubscribe
- Advertisement -spot_img

Latest Articles

Discover more from blackMORE Ops

Subscribe now to keep reading and get access to the full archive.

Continue reading

Privacy Policy on Cookies Usage

Some services used in this site uses cookies to tailor user experience or to show ads.