Django3- Gitignore

Django3- Gitignore

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial covers efficient website changes using Git and GitHub. It emphasizes the importance of making changes locally, pushing them to GitHub, and pulling them to the server. The tutorial explains the use of .gitignore files to manage unnecessary files and demonstrates the process of committing and pushing changes. It also addresses common Git issues and solutions, highlighting the role of Stack Overflow in troubleshooting.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the recommended workflow for making changes to a website?

Make changes directly on the live server.

Make changes locally, push to GitHub, and pull on the server.

Edit files directly in the GitHub repository.

Use a third-party service to manage changes.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of a .gitignore file?

To track all changes in a project.

To ignore specific files and folders from being tracked by Git.

To delete unnecessary files from the project.

To automatically update files on the server.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which files are typically ignored in a Django project using .gitignore?

HTML files

CSS files

Django's automatically generated files like __pycache__

JavaScript files

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to create a .gitignore file in the terminal?

vim .gitignore

edit .gitignore

touch .gitignore

nano .gitignore

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should you do if a file is not being ignored by .gitignore?

Add the file to the project again.

Delete the file manually.

Restart the Git repository.

Use git rm --cached to remove it from tracking.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you commit changes to Git with a message?

git commit -m 'message'

git status -m 'message'

git push -m 'message'

git add -m 'message'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the final step to ensure changes are reflected on GitHub?

Run git status.

Use git pull origin.

Execute git push origin.

Check the local repository.