git把本地文件上传到github上的步骤

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后前端妹子,爱编程,爱运营,爱折腾。

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

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

发表于

我来说两句

0 条评论
登录 后参与评论

相关文章

来自专栏运维小白

1-2 CCNA

物理介质:网线、光纤、网卡接口 ---- 568B:橙白、橙、绿白、蓝、蓝白、绿、棕白、棕 一般网线中,只有1236传输数据 ---- 交叉线:连接同类型设备 ...

32480
来自专栏Linux技术资源分享

简洁的UDP协议通讯 | PHP&&C | socket

33780
来自专栏Web 开发

分层解耦,理想很美好,现实很残酷

自从实习以来,不是第一次有这种想法了。 今天弄一个简单的发邮件功能,使用PHP自带的mail()函数实现,基本就照着php.net上面的例子来写,结果… 情...

10900
来自专栏JetpropelledSnake

Python Web学习笔记之IGMP和ICMP的差别

理论技术:TCP/IP协议族(四)ICMP和IGMP协议! 应该先说IP协议的,后来考虑到层次性,还是先把支撑协议介绍完在细说IP!因为IP是我的最爱也是我的...

331120
来自专栏双十二技术哥

Android性能优化(七)之你真的理解ANR吗?

在上一篇文章《Android性能优化(六)之卡顿那些事》中,我们提到了卡顿的成因、检测卡顿的途径以及避免卡顿的方法。卡顿再扩大就会产生大名鼎鼎的ANR(Appl...

16030
来自专栏互联网技术杂谈

udp的若干问题

参考链接:https://blog.csdn.net/dog250/article/details/6896949

709100
来自专栏JetpropelledSnake

Python Web学习笔记之图解TCP/IP协议和浅析算法

22540
来自专栏土豆的专栏

计算机网络概述

ps: internet(互联网或者互连网)是一个通用名词,泛指多个计算机网络互连而成的网络,在这些网络之间的通信协议可以是任意的;Internet(因特网)则...

673130
来自专栏Java进阶架构师

【网络协议】专题总结以及网络协议高频面试题汇总(8篇)

初次接触,可能对所谓三次握手四次挥手理解过于抽象?没关系,来看动态图版本的文章,让你从抽象到具象:

41720
来自专栏Vamei实验室

协议森林06 瑞士军刀 (ICMP协议)

到现在为止,我们讲解了网络层中最重要的IP协议(参考协议森林)。IP协议的一个重要补充是是ICMP协议。 ICMP协议 ICMP(Internet Contro...

22050

扫码关注云+社区

领取腾讯云代金券