Git Main Flashcards
1
Q
git init
A
Creating repo in the current directory
2
Q
git clone <url></url>
A
Make sure you are not inside a repo
To clone a repo this will create a new repo on your machine and clone the full git history of the project
3
Q
git remote add origin <url></url>
A
Anytime you use the name origin I’m referring to this GitHub repo URL
4
Q
git remote rename <old> <new></new></old>
A
To rename old to new
5
Q
git remove <name></name>
A
Remove the name to stop the push to
6
Q
git push -u origin main
A
To push to GitHub your commits