SOFTWARE ENGINEERING

EMERGING TRENDS IN SOFTWARE ENGINEERING

DEVOPS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which file can you configure to ensure that certain file types are never committed to the local Git repository?
A
ignore.git
B
gitignore
C
gitignore.txt
D
git.ignore
Explanation: 

Detailed explanation-1: -A global . gitignore file helps ensure that Git doesn’t commits certain file types, such as compiled binaries, in any local repo.

Detailed explanation-2: -The . gitignore file tells Git which files to ignore when committing your project to the GitHub repository. gitignore is located in the root directory of your repo. / will ignore directories with the name.

Detailed explanation-3: -In order for a . gitignore file to work correctly, it must be committed before we commit (by accident) any code we don’t want in our Git history. Let’s create a .

There is 1 question to complete.