Bird
0
0
PCB Designbi_tool~10 mins

Version control for PCB projects in PCB Design - Interactive Code Practice

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

Complete the code to initialize a Git repository for your PCB project.

PCB Design
git [1]
Drag options to blanks, or click blank then click option'
Ainit
Bpush
Ccommit
Dclone
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git commit' before initializing the repo
Trying to push before committing
Using 'git clone' to start a new repo
2fill in blank
medium

Complete the command to add all PCB project files to the staging area.

PCB Design
git [1] .
Drag options to blanks, or click blank then click option'
Acommit
Bstatus
Cpush
Dadd
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git commit' instead of 'git add'
Using 'git push' before adding files
Using 'git status' which only shows file states
3fill in blank
hard

Fix the error in the commit command to save changes with a message.

PCB Design
git commit [1] "Initial PCB design files"
Drag options to blanks, or click blank then click option'
A-a
B-m
C-s
D-v
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-a' which adds all changes but needs a message
Using '-v' which shows diff
Using '-s' which signs the commit
4fill in blank
hard

Fill both blanks to push your local commits to the remote repository named 'origin' on the 'main' branch.

PCB Design
git [1] [2] main
Drag options to blanks, or click blank then click option'
Apush
Borigin
Ccommit
Dpull
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git commit origin main' which is invalid
Using 'git pull origin main' which fetches changes
Swapping the blanks
5fill in blank
hard

Fill all three blanks to create a new branch named 'feature-update' and switch to it.

PCB Design
git [1] [2] [3]
Drag options to blanks, or click blank then click option'
Acheckout
B-b
Cfeature-update
Dcommit
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'git commit -b feature-update' which is invalid
Omitting the '-b' flag
Using 'git checkout feature-update' without creating the branch