WorksheetsdevOpsPlay
Total questions: 11
Worksheet time: 5mins
What type of version control software does Git is?
Local VCS
Global VCS
Distributed VCS
Centralized CVS
Which Git state does stores code snapshot permanently?
Staging
Modify
Commit
None of the above
Which sub-directory of Git contains all necessary repository files?
.localstore
.git
.config
.conf
Which command makes any directory a repository on local machine?
git start
git create
git initialize
git init
How can you save all your changes without commiting in git?
it is not possible to save changes without commiting.
using git copy feature
using git stash
using 'git save temporary' command
Both below statements are valid commit command:
> git commit --m "new git commit"
> git commit -message "new git commit"
True
False
Arrange the actions chronologically that should be taken to resolve conflict
a) commit the changes and push them
b) Add these files by the command git add .
c) Edit the files to fix the conflicting changes
d) Identify the files that have caused the conflict.
a b c d
c d b a
d c b a
d b a c
Command to stage all changes done to files
git commit .
git add .
git commit -a -m " code fixes"
git push
Which file can you configure to ensure that certain file types are never committed to the local Git repository?
ignore.git
gitignore.txt
.gitignore
git.ignore
Command to switch between branches.
git checkout <branch name>
git checkout -b <branch name>
git branch -d <branch name>
git branch -m <branch name>
What is ‘git status’ is used for?
To get the information about latest commit on remote branches.
To know the status of remote server (server is up and working or down).
To get list of all latest commits under current branch.
To show the difference between the working directory and the index,
