Git is a version control system that tracks changes to your code. GitHub is a platform where you can store and share your repositories.
1. git init — Create a new repository
2. git add <file> — Stage changes
3. git commit -m "message" — Save changes
4. git push — Upload to GitHub
5. git pull — Download latest changes
# Initialize a new repository
git init
# Configure your identity
git config user.name "Your Name"
git config user.email "your@email.com"
// ...Create a GitHub account and create your first repository. Push the HTML files you've created so far!
Answer all 3 questions correctly to unlock Submit.
1Which command initializes a new Git repository?
2What does `git commit` do?
3Which command sends local commits to a remote?
Git is a version control system that tracks changes to your code. GitHub is a platform where you can store and share your repositories.
1. git init — Create a new repository
2. git add <file> — Stage changes
3. git commit -m "message" — Save changes
4. git push — Upload to GitHub
5. git pull — Download latest changes
# Initialize a new repository
git init
# Configure your identity
git config user.name "Your Name"
git config user.email "your@email.com"
// ...Create a GitHub account and create your first repository. Push the HTML files you've created so far!
Answer all 3 questions correctly to unlock Submit.
1Which command initializes a new Git repository?
2What does `git commit` do?
3Which command sends local commits to a remote?