What is a repository and how will you create it?
Answer / Sandeep Kumar Ram
A Git repository is a set of files that are tracked by Git. It stores the entire history of changes made to those files, including commits, branches, and tags.nnTo create a new Git repository, follow these steps:nn1. Initialize an existing directory as a Git repository using the command: `git init`.n2. Create a new file in the repository and make initial commit: `git add filename` followed by `git commit -m "Initial Commit"`
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a “conflict” in git and how is it resolved?
What does ‘hooks’ comprise of in git?
What is difference between fork and branch?
What does commit object contain?
What is the difference between rebasing and merge in git?
What is ‘git status’ is used for?
What is the difference between the ‘git diff ’and ‘git status’?
What is a distributed vcs?
What is git fork? How to create tag?
What is subgit and why is it used?
Mention the various git repository hosting functions.
What is ‘head’ in git?