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
2
Q
How do you check the status of the modified files on your local?
A
git status
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.
4
Q
How do you get logs of all changes made in the git repository?
A
git log