43) How can you fix a broken commit? To fix any broken commit, you will use the command “git commit—amend”. By running this command, you can fix the broken commit message in the editor. 44) Why is it advisable to create an additional commit rather than amending an existing commit? There are couple of reason a) The amend operation will destroy the state that was previously saved in a commit. If it’s just the commit message being changed then that’s not an issue. But if the contents are being amended then chances of eliminating something important remains more. b) Abusing “git commit- amend” can cause a small commit to grow and acquire unrelated changes. 45) What is ‘bare repository’ in GIT? To co-ordinate with the distributed development and developers’ team, especially when you are working on a project from multiple computers ‘Bare Repository’ is used. A bare repository comprises of a version history of your code. 46) Name a few Git repository hosting services? Pika code Visual Studio Online GitHub Gi Enterprise SourceForge.net 47) What is the difference between Git and GitHub? Git is a revision control system, a tool to manage your source code history. GitHub is a hosting service for Git repositories. GitHub is a website where you can upload a copy of your Git repository. It is a Git repository hosting service, which offers all of the distributed revision control and source code management (SCM) functionality of Git as well as adding its own features. 48) How do you rate GIT in terms of speed? Git is fast. Speed and performance have been a primary design goal of the Git from the start. With Git, nearly all operations are performed locally, giving it a huge speed advantage on centralized systems that constantly have to communicate with a server somewhere. Git was built to work on the Linux kernel, meaning that it has had to effectively handle large repositories from day one. Git is written in C, reducing the overhead of runtimes associated with higher-level languages.
43) How can you fix a broken commit?
To fix any broken commit, you will use the command “git commit—amend”. By
running this command, you can fix the broken commit message in the editor.
44) Why is it advisable to create an additional commit rather than amending
an existing commit?
There are couple of reason
a) The amend operation will destroy the state that was previously saved in a
commit. If it’s just the commit message being changed then that’s not an issue. But if the contents
are being amended then chances of eliminating something important remains more.
b) Abusing “git commit- amend” can cause a small commit to grow and acquire
unrelated changes.
45) What is ‘bare repository’ in GIT?
To co-ordinate with the distributed development and developers’ team, especially when you are
working on a project from multiple computers ‘Bare Repository’ is used. A bare repository comprises
of a version history of your code.
46) Name a few Git repository hosting services?
Pika code
Visual Studio Online
GitHub
Gi Enterprise
SourceForge.net
47) What is the difference between Git and GitHub?
Git is a revision control system, a tool to manage your source code history.
GitHub is a hosting service for Git repositories.
GitHub is a website where you can upload a copy of your Git repository. It is a Git
repository hosting service, which offers all of the distributed revision control and source code
management (SCM) functionality of Git as well as adding its own features.
48) How do you rate GIT in terms of speed?
Git is fast. Speed and performance have been a primary design goal of the Git from
the start. With Git, nearly all operations are performed locally, giving it a huge speed advantage on
centralized systems that constantly have to communicate with a server somewhere.
Git was built to work on the Linux kernel, meaning that it has had to effectively
handle large repositories from day one. Git is written in C, reducing the overhead of runtimes
associated with higher-level languages.
Comments
Post a Comment