Personal Access Tokens (PAT)

GitHub Concepts परिचय

George Boorman

Curriculum Manager, DataCamp

Authentication

  • टर्मिनल में Git से GitHub के साथ काम कर सकते हैं
git clone https://github.com/george-boorman/bank_marketing
Username for 'https://github.com': george-boorman
Password for 'https://[email protected]':
GitHub Concepts परिचय

Authentication असफल

 

 

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-
repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/george-boorman/bank_marketing/'
GitHub Concepts परिचय

GitHub Docs

git clone, fetch, pull, या push करते समय personal access token (PAT) देने के निर्देशों वाला GitHub Docs पेज

1 https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls
GitHub Concepts परिचय

Personal Access Token क्या है?

  • Personal Access Token (PAT)

    • टर्मिनल में पासवर्ड की जगह authentication का विकल्प
    • अगस्त 2021 से पासवर्ड के बजाय आवश्यक
    • अधिक सुरक्षित
  • GitHub UI में जरूरत नहीं

    • केवल टर्मिनल से remote repo एक्सेस करने के लिए
1 https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
GitHub Concepts परिचय

PAT बनाना

प्रोफ़ाइल पेज से settings सेक्शन तक पहुँचना

GitHub Concepts परिचय

PAT बनाना

हमारे settings पेज में Developer settings

GitHub Concepts परिचय

PAT बनाना

Developer settings पेज में तीन विकल्प: GitHub Apps, OAuth Apps, और Personal access tokens

GitHub Concepts परिचय

PAT बनाना

Personal access tokens सेक्शन, Generate new token बटन के साथ

GitHub Concepts परिचय

PAT बनाना

नए PAT के Note और Expiration सेक्शन

GitHub Concepts परिचय

PAT बनाना

repo access चेकबॉक्स चुनना

GitHub Concepts परिचय

PAT बनाना

Generate token बटन

GitHub Concepts परिचय

PAT का उपयोग

PAT अक्षरों और अंकों का मिश्रण, जिसे हम कॉपी कर सकते हैं

GitHub Concepts परिचय

PAT का उपयोग

PAT हाइलाइट, अक्षरों और अंकों का मिश्रण, जिसे हम कॉपी कर सकते हैं

  • PAT साझा न करें!
GitHub Concepts परिचय

PAT का उपयोग

git clone https://github.com/george-boorman/bank_marketing
Cloning into 'bank_marketing'...
Username for 'https://github.com': george-boorman
Password for 'https://[email protected]':
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
ls
bank_marketing
GitHub Concepts परिचय

अभ्यास करते हैं!

GitHub Concepts परिचय

Preparing Video For Download...