InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 1645–1656 of 3610 questions

Git, GitHub & CI/CDBeginner1 min read

What is a commit?

A commit is a snapshot of tracked project content plus metadata such as author, timestamp, message, and parent commit references. Commits form th…

Git, GitHub & CI/CDBeginner1 min read

How do you commit changes?

A commit records staged content. Use an imperative, specific message that explains the change. Avoid committing secrets, temporary files, or unre…

Git, GitHub & CI/CDBeginner1 min read

How do you inspect commit history?

`git log` displays commit history and supports compact, graph, author, and date views. Use `git show <commit>` to inspect a commit's metadata and…

Git, GitHub & CI/CDBeginner1 min read

What is a .gitignore file?

`.gitignore` lists untracked paths Git should normally ignore, such as build output, local secrets, caches, and editor files. It does not stop tr…

Git, GitHub & CI/CDBeginner1 min read

What is a remote in Git?

A remote is a named reference to another repository, commonly hosted on GitHub. `origin` is a conventional default name, not a special Git keywor…

Git, GitHub & CI/CDBeginner1 min read

What is a branch?

A branch is a movable reference to a commit. Branches let developers work on features or fixes independently without changing the branch used for…