Exam1

devops / Git • 20 questions

Question 1 of 20
Which command is used to initialize a new Git repository?
Question 2 of 20
Which command shows the current status of your repository?
Question 3 of 20
Which command stages all modified files for commit?
Question 4 of 20
Which command creates a new commit with a message?
Question 5 of 20
Which command uploads local commits to a remote repository?
Question 6 of 20
Which command downloads changes from a remote repository and merges them?
Question 7 of 20
Which command lists all local branches?
Question 8 of 20
Which command creates and switches to a new branch named feature-x?
Question 9 of 20
Which command merges branch feature-x into the current branch?
Question 10 of 20
Which command shows commit history?
Question 11 of 20
Which command unstages a file added by mistake?
Question 12 of 20
Which command copies a remote repository locally?
Question 13 of 20
Which command adds a remote named origin?
Question 14 of 20
Which command sets your Git username globally?
Question 15 of 20
Which file is used to ignore tracked patterns?
Question 16 of 20
Which command shows unstaged changes?
Question 17 of 20
Which command creates a tag named v1.0?
Question 18 of 20
Which command switches to an existing branch named dev?
Question 19 of 20
Which command shows configured remotes?
Question 20 of 20
Which command temporarily saves uncommitted changes?
← Back