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

Use WordPress.com, Twitter, Facebook, or Google+ accounts to comment (anonymous comments allowed)

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

Privacy Policy on Cookies Usage

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