0% found this document useful (0 votes)
58 views3 pages

Platzi Exam Answers.

Git can version binary files but works best with plain text. The ideal Windows terminal for Git is Git Bash or a Linux-derived terminal. Git stores changes to a project's files. Commit messages are important and mandatory. A branch is a separate repository from master where you can work in parallel. Remote and local repositories have similar branches depending on which are sent between them. HEAD points to the current state based on the branch being worked on. Merges are done to merge changes between branches. During conflicts, analyze Git's reported conflicts and choose final changes before committing. SSH keys securely transmit changes between local and remote repositories. The private key file has no extension. Tags create downloadable versions and points in a repository's history. B
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views3 pages

Platzi Exam Answers.

Git can version binary files but works best with plain text. The ideal Windows terminal for Git is Git Bash or a Linux-derived terminal. Git stores changes to a project's files. Commit messages are important and mandatory. A branch is a separate repository from master where you can work in parallel. Remote and local repositories have similar branches depending on which are sent between them. HEAD points to the current state based on the branch being worked on. Merges are done to merge changes between branches. During conflicts, analyze Git's reported conflicts and choose final changes before committing. SSH keys securely transmit changes between local and remote repositories. The private key file has no extension. Tags create downloadable versions and points in a repository's history. B
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

1.

Git works for many file types, how does Git work with binary files?
You can add and version them but it is better to use Git with plain text.
2.
The ideal terminal for using Git on Windows is?
Git Bash or a Linux-derivedterminal
3.
What does Git store?
Changes to a project's files.
4.
In a commit, the commit messages are:
Important and mandatory.
5.
What is a branch in Git?
A separate repository from the master where you can work in parallel.
6.
A remote repository and a local repository:
They have similar branches depending on which ones are sent between one and
the other.
7.
The HEAD on a branch is?
The pointer to the current state of the repository based on the branch I am working
on.
8.
When should I do a merge?
When I want to merge changes from one branch to another.
9.
When there is a conflict between files it is best to:
Analyze conflicts as reported by Git and choose final changes, then commit.
10.
Are the public keys?
Easy to share and their messages impossible to decipher.
11.
To securely transmit changes between your local repository and GitHub, what is
recommended?
Use an SSH key.
12.
Two files are created when you create a public and private key for SSH, what is the
extension of the private key?
No extension
13.
What do tags create in Git?
Downloadable versions and single points in a branch of a repository.
14.
Can I create branches on GitHub that I don't have in my local repository?
Yes, you decide whether to bring those branches to your local repository.
15.
For two people to work in parallel on the same file it is recommended:
A separate branch for each person and their changes which is then merge to
master with verification.
16.
A pull request is:
A suggested change to a repository that the repository owner can authorize and
merge to a branch of their choice.
17.
The owner of a repository can view a pull request:
Edit it, accept it, give it merge, comment it to ask for changes.
18.
When Ifork a project on GitHub, what I achieve is?
Add me as a contributor to a remote repository and be able to push/pull and make
modifications as a contributor to that repository.
CLASS REVIEW
19.
If you already did the "Make me a pull request" challenge, under which tag did you
have to add the change?
<divid="post">
20.
If in the .gitignore I add this: images/*.js. Which of the following files would be
ignored?
images/jquery.js
21.
When you use git stash, the changes you temporarily "save" are saved to:
Temporary memory, returning to the state of the last commit.
22.
When should you use cherry-pick?
When I want the changes of a past commit without damaging the branch history.
23.
Can I amend it?
Correct the messages of a commit I did wrong without it remaining in the history of
the repository.
24.
If you use:
git config --global alias.platzi "shortlog" alias.platzi
"shortlog" alias.
How to invoke this command?
gitglobal platzi noooooooo
CLASS REVIEW
25.
How do you install Gitk?
On Windows and Mac we can install it from gitk.com/download. In Linux we must
look for it with the package installer of our distribution.
CLASS REVIEW
26.
What do GitHub and GitLab call "merges" (proposed changes from another branch
or repository)?
GitHub calls them Pull Request and GitLab Merge Request.
27.
Can you connect your local repository to more than one remote repository?
True
28.
You are in the master branch and you want to send the last changes you saved
with git stash to the retake-changes branch (the branch has not been created yet).
Which of the following solutions isincorrect?
git stash apply retaking-changes
29.
By default, GitHub uses the main branch as the main branch. Can we change the
main branch?
True
30.
Chief Freddy fired Anita and does not plan to rehire her. What must Anita do to
continue making contributions to Platzi's public projects?
Create a Fork of the project and send Pull Request to the original project.

You might also like