What is the difference between ‘git remote’ and ‘git clone’?
Answer / Richa Bhatnagar
Git clone is a command used to create a local copy of a remote repository. It initializes an empty Git directory, creates branches, tracks files, and checks out the 'master' branch by default. On the other hand, git remote is used to manage the relationships between your local repository and remote repositories (origin), which allows you to push or pull changes to and from those repositories.
| Is This Answer Correct ? | 0 Yes | 0 No |
What are git repository hosting services you used?
Explain what is commit message?
Name a few git commands and explain their usage.
To delete a branch what is the command that is used?
What is subgit?
What work is restored when the deleted branch is recovered?
what is git fork? What is difference between fork and branch? How to create tag?
What is the function of ‘git checkout’ in git?
How do you find a list of files that have changed in a particular commit?
What is the difference between git pull and git fetch?
Why is it desirable to create an additional commit rather than amending an existing commit?
What is the syntax for “Rebasing” in Git?