Skip to content

Instantly share code, notes, and snippets.

View aadarsh-kumar-devops's full-sized avatar

Aadarsh aadarsh-kumar-devops

  • 23:40 (UTC +05:30)
View GitHub Profile
@aadarsh-kumar-devops
aadarsh-kumar-devops / git-auth.py
Created May 20, 2026 06:36
A lightweight script to quickly initialize the Git credential store using a GitHub PAT. Say goodbye to typing tokens manually without dealing with SSH.
import os
import sys
import time
import threading
import subprocess
from getpass import getpass
# --- ANSI Color Codes ---
CLR_RESET = "\033[0m"
CLR_BOLD = "\033[1m"