GIT Test 1

0%

Which file can you set up to prevent specific file types from ever being committed to the local Git repository?

Correct! Wrong!

Explanation:
Git is only for storing source code. Image files, compiled code, logs, and archives are examples of resources that should be kept out of the repository. Git will refuse to commit specific resources to the repository if a.gitignore file is configured, even if they are put to the staging area.

The git command ________is used to add tags to a commit.

Correct! Wrong!

Explanation:
The primary driver of tag generation, modification, and deletion is the git tag command. Annotated tags and lightweight tags are the two sorts of tags.

With a Windows-based Git install, what is the default text editor for the Bash shell?

Correct! Wrong!

Explanation:
When Git Bash is installed on a Windows PC, Vim is the default text editor. Unfortunately, for Windows users who are new with Vim, the tool tends to provide an unnecessary stumbling block in the way of Git beginners. Do you want to make it easier for Windows users to understand Git? Replace Git's default text editor with something more user-friendly, such as Emacs or Notepad++.

To display a limited amount of commits, what command is used?

Correct! Wrong!

Explanation:
The git log -n command is used to display a set number of commits.

Which two configuration parameters does Git want to be configured after you install it and before you make your first commit?

Correct! Wrong!

Explanation:
Every commit should have a username and an email address linked with it, according to Git. In a distributed context, this allows all source code contributors to quickly identify and communicate with co-contributors.

The git config command can be used to set up the user.name and user.email attributes, as seen below:

/c/ git quiz (tutorial)
$ git config --local user.name "Git quiz taker"
/c/ git quiz (tutorial)
$ git config --local user.email "[email protected]"

If the user.name and user.email address properties are not explicitly provided, Git will supply the appropriate information to a commit using the local machine's IP address and the OS' logon credentials. It will also provide a rather detailed warning message about properly specifying these properties.

What do refs stores entail?

Correct! Wrong!

Explanation:
The Resilient File System (ReFS) is Microsoft's newest file system, designed to increase data availability, scale quickly to huge data sets across a variety of workloads, and guarantee data integrity and corruption resistance. It aims to meet a growing number of storage scenarios while also laying the groundwork for future improvements.

Which of the following necessary items must be present and configured on your local OS before you install Git?

Correct! Wrong!

Explanation:
One of the best things about Git is that it requires no additional software other than a compatible operating system, which can be any recent Mac, Windows OS, or Linux distribution. Git does not require a Jakarta EE web profile, such as Tomcat, for hosting, unlike continuous integration technologies like Jenkins. It also does not require a JDK or Java Runtime Environment to run, unlike tools like Apache Maven.

Which of the following does not fall inside the scope of Git configuration?

Correct! Wrong!

Explanation:
Each Git repository's.git folder contains the configuration file for the local scope.

The system scope configuration file is kept in a subdirectory of the Git installation.

The global scope's configuration file is located in the user's home directory, which is why newcomers to Git often confuse global scope with user scope, as globally scoped variables are set uniquely for each user logging into the local OS. However, global, not user, is the correct name for this level of scope.

Which of the following websites hosts the most open source Git repositories?

Correct! Wrong!

Explanation:
GitHub is a for-profit firm that provides Git repository hosting in the cloud. It essentially makes using Git for version control and collaboration much easier for individuals and teams.

Premium Tests $49/mo
FREE April-2024