How do I setup a git repository?

Pham Quỳnh

New member
How do I setup a git repository?
Answer
A new repo from an existing project
  1. Go into the directory containing the project.
  2. Type git init .
  3. Type git add to add all of the relevant files.
  4. You’ll probably want to create a .gitignore file right away, to indicate all of the files you don’t want to track. Use git add .gitignore , too.
  5. Type git commit .
 

Tìm kiếm

Back
Top