sudo apt-get install git
git --version
git config --global user.name "username"
git config --global user.email "something@mail.com"
git config --list
gedit ~/.gitconfig
git init
git status
git add -A
git commit -m "My First Git Commit"
git remote add origin https://github.com/mycodinglab/wordcount-project.git
git branch -M main
git push -u origin main
--Provide Username & Password--
git push
git clone https://something.com
git status
git add file.py
git status
git commit -m "My First Git Commit" file.py
git remote add origin https://github.com/mycodinglab/wordcount-project.git
git branch -M main
git push -u origin main
--Provide Username & Password--
…or create a new repository on the command line
echo "# mycodinglab" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/mycodinglab/wordcount-project.git
git push -u origin main
…or push an existing repository from the command line
git remote add origin https://github.com/mycodinglab/wordcount-project.git
git branch -M main
git push -u origin main