git 上传本地代码流程

设置用户名和邮箱

git config --global user.name [username]
git config --global user.email [email]
查看用户名和邮箱

git config --global user.name
git config --global user.email

往coding上初次上传项目流程

1、首先在coding创建项目,创建后再- -代码-获取访问的https
2、克隆
$ cd /WorkSpace // 找个放空项目的地方
$ git clone https://coding.net/yourusername/projectname.git //克隆
3、把现有的项目文件拷贝到克隆下来的文件夹内
4、提交
$ cd projectname //转到项目文件夹下
$ git add . // 追踪新文件,并放到暂存区
$ git commit -m "first commit" //将文件纳入本地仓库
$ git push // 将本地仓库同步到远端仓库

猜你喜欢

转载自blog.csdn.net/u013857988/article/details/84373772