Git提交代码的小知识

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

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

git init//用于创建Repository

2.添加代码到Repository

git add .

3.提交

git commit -m "First commit."

 

posted @ 2018-12-25 09:27  拎着红杯子的黄鸭子  Views(258)  Comments(0Edit  收藏  举报