Terry L
3 min readJun 7, 2021

--

Photo by Pablo Arroyo on Unsplash
git init
git remote add origin git@github.com:your-github-username/your-github-repository
git add README.md **README.md is our file**
git add . **Don't overlook that (.)! This adds all files**
git commit -m "Useful message inside quotes"
git commit --amend -m "Change your commit message with amend"
git push -u origin main **used when you first push a new branch**
git push **shorter command that can be used after above command**
The commit ids in yellow are what you’ll need to grab
git log --oneline  **gives a simplified version of git log**
git checkout <commit id here> .  **again don't forget that (.)!**

--

--

Terry L

Current Flatiron School student trying to learn more about software engineering.