Ubuntu Git install

How To Install and Set Up Git on Ubuntu
https://phoenixnap.com/kb/how-to-install-git-on-ubuntu


sudo apt update
sudo apt install git -y
git --version

Managing your personal access tokens
https://docs.github.com/en/enterprise-server@3.9/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens

Create and store your GitHub personal access token
https://www.pragmaticlinux.com/2023/05/create-and-store-your-github-personal-access-token/

nano ~/.git-credentials

Next, enter the following on the first line. Make sure to replace user with your account’s username and pass with your personal access token:

https://user:pass@github.com

git config --global credential.helper store

git config --global user.email "you@example.com"
git config --global user.name "Your Name"

GIT – How to remove node_modules

Create a .gitignore file in the git repository if it does not contain one
touch .gitignore

Open up the .gitignore and add the following line to the file
**/node_modules

Remove the node_modules folder from the git repository
git rm -r –cached node_modules

Commit the git repository without the node modules folder
git commit -m “Removed node_module folder”

Push the repository to github
git push origin master

After all of that, you should also add the gitignore and commit it to the repository

git add .gitignore

git commit -m “Updated the .gitignore file

git push origin master

https://gist.github.com/lmcneel/45594e550a3403d589bdcaad38138a83