成都建设网站,好网站建设公司昆明,163网易企业邮箱格式,wordpress免费插件下载与码云建立连接教程#xff1a;http://blog.csdn.net/zengmingen/article/details/76045076 如果完成了上面步骤的#xff0c;且有了git。上传项目步骤#xff1a; 代码提交 代码提交一般有五个步骤#xff1a; 1.查看目前代码的修改状态 2.查看代码修改内容 3.暂存需要提交…与码云建立连接教程http://blog.csdn.net/zengmingen/article/details/76045076 如果完成了上面步骤的且有了git。上传项目步骤 代码提交 代码提交一般有五个步骤 1.查看目前代码的修改状态 2.查看代码修改内容 3.暂存需要提交的文件 4.提交已暂存的文件 5.同步到服务器 1. 查看目前代码的修改状态 提交代码之前首先应该检查目前所做的修改运行Git status命令 a) 已暂存 changes to be committed new file //表示新建文件 modified //表示修改文件 deleted //表示删除文件 b) 已修改 changed but not updated modified //表示修改文件 deleted //表示删除文件 另外git 给出了可能需要的操作命令git add/rm, gitcheckout -- c) 未跟踪 untracked files 2. 查看代码修改的内容 git diff file 比较某文件与最近提交节点的差异。 注意如果该文件已暂存那么应该使用git diff –cachedfile git diff hashcode hashcode file 比较某文件在提交节点a节点b的差异。 技巧如果省略后面一个hashcode则默认表示与上一提交节点比较。也可以利用^运算符 3. 暂存需要提交的文件 如果是新建的文件 则git add file 如果是修改的文件 则git add file 如果是删除的文件 则 git rm file4. 提交已暂存的文件 git commit 注意注释填写规范。 git commit --amend 修改最近一次提交。有时候如果提交注释书写有误或者漏提文件可以使用此命令。 5. 同步到服务器 同步到服务器前先需要将服务器代码同步到本地 命令 git pull 如果执行失败就按照提示还原有冲突的文件然后再次尝试同步。 命令git checkout -- 有冲突的文件路径 同步到服务器 命令 git push origin 本地分支名 如果执行失败一般是没有将服务器代码同步到本地导致的先执行上面的git pull命令。 操作例子 复制这行代码到你本地找个文件夹开始clone吧 #cd ~/gitosproject
#git clone gitgit.oschina.net:ifengye/test.git 看到这行说明远程仓库的代码已经被clone下来啦 #cd test 下面开始撸代码吧啪啪啪啪啪啪啪啪好了撸完了我们来提交我们的代码哈~ 提交项目 一个好习惯不管这个项目多少人参与push之前先pull一下看看有没有merge的代码有merge解决merge没有的话直接下面的命令 #git pull origin master
#git add .
#git commit -m init
#git push origin master OK下面我们去看下代码是不是被添加上来了~ 看到这个界面我就放心了因为我之前在gitos上搞过事就用的之前的账户提交的代码如果你有很多员工需要提交代码那么你可以在设置里面添加他们的账号进来给他们读写代码的权限。总之码云还是很给力的。开心的撸代码吧以后到哪都可以撸代码啦好开心~~~ --------------------------- $ git add . warning: LF will be replaced by CRLF in .idea/workspace.xml. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/app.component.html. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/app.module.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart/chart.component.html. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart/chart.component.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in tsconfig.json. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart2/chart2.component.html. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart2/chart2.component.spec.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart2/chart2.component.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart3/chart3.component.html. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart3/chart3.component.spec.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart3/chart3.component.ts. The file will have its original line endings in your working directory. 曾妙根zengmiaogen MINGW64 /d/kuaipan/workspace_angular/dochart (master) $ git commit -m 三大报表完成 [master warning: LF will be replaced by CRLF in .idea/workspace.xml. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/app.component.html. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/app.module.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart/chart.component.html. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart/chart.component.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in tsconfig.json. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in .idea/workspace.xml. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart/chart.component.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart2/chart2.component.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart3/chart3.component.ts. The file will have its original line endings in your working directory. ba26cff] 三大报表完成 warning: LF will be replaced by CRLF in .idea/workspace.xml. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/app.component.html. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/app.module.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart/chart.component.html. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart/chart.component.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart2/chart2.component.html. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart2/chart2.component.spec.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart2/chart2.component.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart3/chart3.component.html. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart3/chart3.component.spec.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in src/app/chart3/chart3.component.ts. The file will have its original line endings in your working directory. warning: LF will be replaced by CRLF in tsconfig.json. The file will have its original line endings in your working directory. 36 files changed, 1109 insertions(), 773 deletions(-) create mode 100644 src/app/chart2/chart2.component.css create mode 100644 src/app/chart2/chart2.component.html create mode 100644 src/app/chart2/chart2.component.spec.ts create mode 100644 src/app/chart2/chart2.component.ts create mode 100644 src/app/chart3/chart3.component.css create mode 100644 src/app/chart3/chart3.component.html create mode 100644 src/app/chart3/chart3.component.spec.ts create mode 100644 src/app/chart3/chart3.component.ts delete mode 100644 src/app/charts/column.ts create mode 100644 src/app/charts/cslcs_pie.ts create mode 100644 src/app/charts/csyhs_pie.ts delete mode 100644 src/app/charts/gauge.ts delete mode 100644 src/app/charts/line.ts delete mode 100644 src/app/charts/pie.ts create mode 100644 src/app/charts/xllcs_pie.ts create mode 100644 src/app/charts2/line_column.ts create mode 100644 src/app/charts3/line_line.ts 曾妙根zengmiaogen MINGW64 /d/kuaipan/workspace_angular/dochart (master) $ git push origin master Counting objects: 42, done. Delta compression using up to 8 threads. Compressing objects: 100% (39/39), done. Writing objects: 100% (42/42), 9.71 KiB | 0 bytes/s, done. Total 42 (delta 30), reused 0 (delta 0) To gitgit.oschina.net:zengmg/dochart2.git 2479f60..ba26cff master - master 曾妙根zengmiaogen MINGW64 /d/kuaipan/workspace_angular/dochart (master)