Git Fundamentals Flashcards

The basics of working with Git repositories

1
Q

How do you clone a git repository?

A

Copy the approriate code from the Git remote (Github, Gitlab, Bitbucket etc…) and then do:

git clone git@github.com:USER-NAME/REPOSITORY-NAME.git

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

How do you check the status of the modified files on your local?

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

How do you push files into the remote git repository?

A

Use git add to add the changes files or git add . to add all files then git commit -m "some message" to commit then use git push to push the changes.

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

How do you get logs of all changes made in the git repository?

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