Git提交代码的小知识

1.需要切换到项目目录下并创建一个Repository用于提交代码到这个仓库里

cd /g/....//cd后面有空格,用于进入某个项目文件夹

git init//用于创建Repository

2.添加代码到Repository

git add .

3.提交

git commit -m "First commit."

原文地址:https://www.cnblogs.com/1521681359qqcom/p/10172133.html