← Back to course: Git and GitHub from scratch

Commits and branches

Video coming soon

git init creates a repository; git add and git commit -m "message" save a version. A branch (git switch -c my-change) lets you try ideas without touching the main version; when it works, merge it with git merge.

Test what you learned

Question 1 of 3

Which command creates a repository?

✎ My notes

Saved only in this browser. Sign in to keep it in your account.0/5000 characters

Next →