SOFTWARE ENGINEERING

EMERGING TRENDS IN SOFTWARE ENGINEERING

DEVOPS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
How to initialize git repository?
A
start
B
init
C
initialize
D
work
Explanation: 

Detailed explanation-1: -Create a directory to contain the project. Go into the new directory. Type git init . Write some code. Type git add to add the files (see the typical use page). Type git commit .

Detailed explanation-2: -Create a new, empty Git repository on your remote server. Obtain the git remote add URL for the remote repository and add credentials if needed. Run the git remote add origin command from your local repository with the–set-upstream and the name of the active branch to push.

Detailed explanation-3: -Specify that the Git repository is to be shared amongst several users. This allows users belonging to the same group to push into that repository. When specified, the config variable “core.sharedRepository” is set so that files and directories under $GIT DIR are created with the requested permissions.

There is 1 question to complete.