Step-by-Step Guide to Updating GitHub Token on Linux T... [Link]
Open in app Sign up Sign in
Search
Step-by-Step Guide to Updating GitHub
Token on Linux Terminal
Chiemeka Ifemegbulem · Follow
2 min read · Nov 29, 2023
Listen Share
Step 1: Remove Stored Credentials (if needed)
1. Open the terminal.
2. Locate the Git credential file. It’s typically stored in the home directory in a
hidden folder called .git-credentials or .gitconfig .
3. Use a text editor or command line to open the file and remove the entry
related to GitHub credentials.
Step 2: Generate a New Personal Access Token on GitHub
1 of 9 21/07/2024, 17:55
Step-by-Step Guide to Updating GitHub Token on Linux T... [Link]
1. Go to your GitHub account settings.
2. Click on “Developer settings” > “Personal access tokens”.
3. Generate a new token with the necessary scopes/permissions.
4. Copy the generated token.
Step 3: Update Git Configuration
1. Open the terminal.
2. Use the following command to configure Git to store the new credentials:
git config --global [Link] store
This will make Git temporarily store your credentials in a plain text file.
3. Run any Git command that interacts with GitHub to trigger the credentials
prompt:
git pull
It will prompt for your GitHub username and password.
4. Enter your GitHub username and paste the new personal access token as the
password.
Step 4: Verify the Setup
1. After updating the credentials, perform a Git operation that interacts with
GitHub, such as pulling or pushing from a repository.
2. Ensure that the operation executes successfully without asking for credentials
again.
Remember, storing credentials in plain text might not be the most secure option,
so it’s advisable to use a credential manager or helper appropriate for your system
2 of 9 21/07/2024, 17:55
Step-by-Step Guide to Updating GitHub Token on Linux T... [Link]
or integrate Git with SSH keys for enhanced security.
If you encounter any issues or need further assistance with a specific part of
these steps, feel free to ask!
Github Github Actions Token Updates Software Engineering
Follow
Written by Chiemeka Ifemegbulem
3 Followers
Good technical writing is the art of making complex information understandable and accessible to those
who need it.
More from Chiemeka Ifemegbulem
3 of 9 21/07/2024, 17:55
Step-by-Step Guide to Updating GitHub Token on Linux T... [Link]
Chiemeka Ifemegbulem
Mastering NGINX: Effortlessly Hosting Multiple Domains on a Single
Server
Configuring NGINX to serve multiple domains on a single server involves creating separate
server blocks (also known as virtual hosts) for…
Dec 26, 2023 1
Chiemeka Ifemegbulem
Time management 15 agile approach, as a tech professional.
Effective time management skills are vital for balancing the demands of work, study, family
responsibilities, and social activities, when…
Jun 20, 2023
4 of 9 21/07/2024, 17:55
Step-by-Step Guide to Updating GitHub Token on Linux T... [Link]
Chiemeka Ifemegbulem
what happens when you type [Link] in your browser
and press Enter.
When you type “[Link] in your web browser and hit Enter, a fascinating
journey begins behind the scenes to bring the…
Jul 25, 2023
See all from Chiemeka Ifemegbulem
Recommended from Medium
5 of 9 21/07/2024, 17:55
Step-by-Step Guide to Updating GitHub Token on Linux T... [Link]
Alexander Nguyen in Level Up Coding
The resume that got a software engineer a $300,000 job at Google.
1-page. Well-formatted.
Jun 1 13.9K 206
6 of 9 21/07/2024, 17:55
Step-by-Step Guide to Updating GitHub Token on Linux T... [Link]
Yasir Quyoom
How to Integrate Animated Google Map, Like Uber, Lyft, Didi Chuxing,
Ola, Grab, and Yandex Taxi…
Dribble
Lists Enver-studio
Mar 23 28 3
General Coding Knowledge
20 stories · 1401 saves
Stories to Help You Grow as a Software Developer
19 stories · 1214 saves
Leadership
53 stories · 388 saves
Good Product Thinking
11 stories · 636 saves
Artturi Jalli
I Built an App in 6 Hours that Makes $1,500/Mo
Copy my strategy!
Jan 23 19.91K 213
7 of 9 21/07/2024, 17:55
Step-by-Step Guide to Updating GitHub Token on Linux T... [Link]
Myles Loffler in AWS in Plain English
Getting Up and Going with AWS CodeArtifact
For Python
Mar 19 38
8 of 9 21/07/2024, 17:55
Step-by-Step Guide to Updating GitHub Token on Linux T... [Link]
LORY
A basic question in security Interview: How do you store passwords in
the database?
Explained in 3 mins.
May 12 4.1K 47
Basant Soni
Make your Terminal Productive
When working with servers or command-line-based applications, we spend most of our
time on the command line. A good-looking and productive…
May 14 1
See more recommendations
9 of 9 21/07/2024, 17:55