Multiple choice questions: git commit

Nov 4, 2013 • Ofer Bartal

A) Competent from Novice:

The command ‘git commit’:

a) Commits your changes to a shared repository

b) Commits your changes to a private repository

c) Commits your changes to a shared or private repository, ‘-s’ option is for shared. It’s private by default, but the default can be changed in the config file.

d) There is not ‘git commit’, only ‘git push’, as git is a distributed source control, and ‘commit’ is an idiom only used in centralized source controls such as SourceSafe, svn, cvs, etc.

 

B) Expert from Competent:

The ‘-m’ option in ‘git commit’:

a) Is mandatory, you cannot commit without it

b) Is optional, but git will give you a warning if you commit without it

c) Is optional, but no warning will be given if you commit without it

d) There is no ‘-m’ option for ‘git commit’