0
0
Gitdevops~10 mins

Pull request process in Git - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to create a new branch named 'feature' from the current branch.

Git
git checkout -b [1]
Drag options to blanks, or click blank then click option'
Afeature
Bmain
Cmaster
Ddevelop
Attempts:
3 left
💡 Hint
Common Mistakes
Using an existing branch name instead of a new one.
Forgetting to use the '-b' flag to create a new branch.
2fill in blank
medium

Complete the command to push the 'feature' branch to the remote repository.

Git
git push origin [1]
Drag options to blanks, or click blank then click option'
Afeature
Bdevelop
Cmaster
Dmain
Attempts:
3 left
💡 Hint
Common Mistakes
Pushing the wrong branch name.
Forgetting to specify the remote repository.
3fill in blank
hard

Fix the error in the command to fetch the latest changes from the remote repository.

Git
git [1] origin
Drag options to blanks, or click blank then click option'
Apull
Bpush
Cclone
Dfetch
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git push' which uploads changes instead of downloading.
Using 'git clone' which creates a new copy of the repository.
4fill in blank
hard

Fill both blanks to create a pull request title and description using git command line.

Git
git request-pull [1] [2]
Drag options to blanks, or click blank then click option'
Aorigin/feature
Borigin
Chttps://github.com/user/repo.git
Dfeature
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the branch name and repository URL.
Using remote name instead of repository URL.
5fill in blank
hard

Fill all three blanks to merge the 'feature' branch into 'main' and delete the 'feature' branch locally.

Git
git checkout [1] && git merge [2] && git branch -d [3]
Drag options to blanks, or click blank then click option'
Afeature
Bmain
Ddevelop
Attempts:
3 left
💡 Hint
Common Mistakes
Merging into the wrong branch.
Deleting the wrong branch.
Not switching branches before merging.