在新增專案時,可以直接用選取的方式,將專案放入git 版本控管。
但如果 是在已經舊有的專案中,如何 將專案放進 git 版本控管呢?
可直接以terminal
Use the cd
command to switch to your project folder, making it the current working directory.
Enter git init
to create an empty repository.
Enter git add .
to copy your project files into the repository.
Enter git commit -m "Initial commit."
to commit all the files.
沒有留言:
張貼留言