1.清除clean

2.返回上一级cd ..

3.克隆仓库地址git clone+地址

4.添加忽悠文件vim .gitignore

5查看cat .gitignore

6.进入到test,并且添加所有的文件:cd test    git add.

7.查看状态,绿色git status

8.提交git commit  -am "wangtingwx"

9.查看状态

10.放到github:   ----------git  push origin master

Administrator@PC-20160607HTQZMINGW64/d/Documents/HBuilderProjects/weixin

$ clean

bash: clean: command not found

Administrator@PC-20160607HTQZMINGW64/d/Documents/HBuilderProjects/weixin

$ clear

Administrator@PC-20160607HTQZMINGW64/d/Documents/HBuilderProjects/weixin

$ cd ..

Administrator@PC-20160607HTQZMINGW64/d/Documents/HBuilderProjects

$ git clone https://github.com/wangxiaoting666/test.git

Cloning into 'test'...

warning: You appear to have cloned an empty repository.

Checking connectivity... done.

Administrator@PC-20160607HTQZMINGW64/d/Documents/HBuilderProjects

$ vim .gitignore

Administrator@PC-20160607HTQZMINGW64/d/Documents/HBuilderProjects

$ cat .gitignore

node_modules

Administrator@PC-20160607HTQZMINGW64/d/Documents/HBuilderProjects

$ cd test

Administrator@PC-20160607HTQZMINGW64/d/Documents/HBuilderProjects/test(master)

$ git add .

warning: LF will be replaced by CRLF in node_modules/.bin/mime.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in node_modules/accepts/HISTORY.md.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in node_modules/accepts/LICENSE.

The file will have its original line endings in your working directory.

Administrator@PC-20160607HTQZMINGW64/d/Documents/HBuilderProjects/test(master)

$ git status

On branch master

Initial commit

Changes to be committed:

(use "git rm --cached ..." to unstage)

new file:   .project

new file:   node_modules/.bin/mime

new file:   node_modules/.bin/mime.cmd

new file:   node_modules/accepts/HISTORY.md

new file:   node_modules/accepts/LICENSE

new file:   node_modules/accepts/README.md

new file:   node_modules/accepts/index.js

new file:   node_modules/accepts/package.json

Administrator@PC-20160607HTQZMINGW64/d/Documents/HBuilderProjects/test(master)

$ git commit -am "wangtingwx"

[master (root-commit) 93dfc21] wangtingwx

warning: LF will be replaced by CRLF in node_modules/.bin/mime.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in node_modules/accepts/HISTORY.md.

The file will have its original line endings in your working directory.

warning: LF will be replaced by CRLF in node_modules/accepts/LICENSE.

The file will have its original line endings in your working directory.

Administrator@PC-20160607HTQZMINGW64/d/Documents/HBuilderProjects/test(master)

$ git status

On branch master

Your branch is based on 'origin/master', but the upstream is gone.

(use "git branch --unset-upstream" to fixup)

nothing to commit, working directory clean

Administrator@PC-20160607HTQZMINGW64/d/Documents/HBuilderProjects/test(master)

$ git push origin master

Username for 'https://github.com': wangxiaoting666

Counting objects: 314, done.

Delta compression using up to 2 threads.

Compressing objects: 100% (302/302), done.

Writing objects: 100% (314/314), 284.07 KiB | 0 bytes/s, done.

Total 314 (delta 65), reused 0 (delta 0)

remote: Resolving deltas: 100% (65/65), done.

To https://github.com/wangxiaoting666/test.git

* [new branch]      master -> master

原文作者:祈澈姑娘

技术博客:https://www.jianshu.com/u/05f416aefbe1

90后前端妹子,爱编程,爱运营,爱折腾。

坚持总结工作中遇到的技术问题,坚持记录工作中所所思所见,欢迎大家一起探讨交流。

文末福利:关注「编程微刊」公众号 ,在微信后台回复「领取资源」,获取IT资源200G干货大全。公众号回复“1”,拉你进程序员技术讨论群

最新文章

  1. 3.jenkins 权限认证与密码设置
  2. Token Based Authentication in Web API 2
  3. jQuery小技巧
  4. make no mistake, we are the last line of defense.
  5. Python 的property的实现 .
  6. HDU 5775 树状数组
  7. Hive[1] 初识 及 安装
  8. 架构设计:负载均衡层设计方案(7)——LVS + Keepalived + Nginx安装及配置
  9. android禁止ScrollView自动滚动
  10. twisted(1)--何为异步
  11. IBM Security AppScan Standard 用外部设备录制脚本(手机端应用、app、微信等)进行安全测试
  12. Python[小甲鱼009了不起的分支和循环3]
  13. mac下出现xcrun: error导致git、svn无法使用的解决办法
  14. Linq中的left join
  15. IOS文件系统及其相关操作(NSFileManager,NSFileHandle)
  16. Spark部署
  17. Json转换工具类(基于google的Gson和阿里的fastjson)
  18. Spring IOC-ContextLoaderListener
  19. prop和state的区别
  20. 常用js-API

热门文章

  1. POJ 3630 Phone List(字典树)
  2. Redis批量执行(如list批量添加)命令工具 —— pipeline管道应用
  3. [Python] Boolean Or "Mask" Index Arrays filter with numpy
  4. 制作自己的特色PE----Mr.Zhang
  5. .Net中字典的使用
  6. centos7 keepalive双机热备~
  7. 6.C语言迷宫程序界面版
  8. POJ 1682 DP
  9. Python学习笔记 capture 1
  10. 【Redis发布订阅】