Skip to content

Latest commit

 

History

History
39 lines (39 loc) · 1.05 KB

Upload-To-Github.md

File metadata and controls

39 lines (39 loc) · 1.05 KB
sudo apt update
sudo apt install git
git config --global user.name "Your Name"
git config --global user.email "[email protected]"
cd /path/to/your/files
git init
git add .
git commit -m "Initial commit"
  • Create a repository in your github manually and copy the link of this repository
git remote add origin ENTER_YOUR_GITHUB_REPO_LINK_HERE

YOU NEED TO DO THE BELOW PROCESS ONLY ONE TIME, ALSO MAKE SURE TO SAVE THE GENERATED KEY IN SOMEWHERE ELSE

  • Now visit This Link (If it ask password, then provide password)
  • In the Note section write anything
  • In the Select scopes sections select repo section and then click on Generate token
  • Copy that token, this token will be used as passoword during github files upload

git branch -M main
git push -u origin main
  • It will ask your github username and github password but in the password section u need to paste the generated token you copied earlier
  • Done !!