Git Main Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

git init

A

Creating repo in the current directory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

git remote add origin <url></url>

A

Anytime you use the name origin I’m referring to this GitHub repo URL

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

git remote rename <old> <new></new></old>

A

To rename old to new

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

git remove <name></name>

A

Remove the name to stop the push to

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

git push -u origin main

A

To push to GitHub your commits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly