Interview practice question
Putting an existing project under version control
Cloud & DevOps · Git and Version Control · Beginner
You have a project folder on your laptop that is not in Git yet. How do you put it in a new remote repository?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- git init.
- Add .gitignore first.
- git add, git commit.
- Create remote repo, git remote add origin.
- git push -u origin main.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.