#将django_channel文件夹初始化为git文件夹
F:\django_channel>git init
Initialized empty Git repository in F:/django_channel/.git/#将当前文件夹中所有内容添加到git本地仓库
F:\django_channel>git add .
warning: LF will be replaced by CRLF in .idea/dataSources.local.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in .idea/dataSources.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in .idea/django_channel.iml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in .idea/inspectionProfiles/profiles_settings.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in .idea/misc.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in .idea/modules.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in .idea/vcs.xml.
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#查看git仓库状态
F:\django_channel>git status
On branch masterNo commits yetChanges to be committed:(use "git rm --cached <file>..." to unstage)new file:   .idea/dataSources.local.xmlnew file:   .idea/dataSources.xmlnew file:   .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647.xmlnew file:   .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadatanew file:   .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata.keystreamnew file:   .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata.keystream.lennew file:   .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata.lennew file:   .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata_inew file:   .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata_i.lennew file:   .idea/django_channel.imlnew file:   .idea/inspectionProfiles/profiles_settings.xmlnew file:   .idea/misc.xmlnew file:   .idea/modules.xmlnew file:   .idea/vcs.xmlnew file:   .idea/workspace.xmlnew file:   db.sqlite3new file:   django_channel/__init__.pynew file:   django_channel/__pycache__/__init__.cpython-36.pycnew file:   django_channel/__pycache__/routing.cpython-36.pycnew file:   django_channel/__pycache__/settings.cpython-36.pycnew file:   django_channel/__pycache__/urls.cpython-36.pycnew file:   django_channel/__pycache__/wsgi.cpython-36.pycnew file:   django_channel/routing.pynew file:   django_channel/settings.pynew file:   django_channel/urls.pynew file:   django_channel/wsgi.pynew file:   manage.pynew file:   myproject/__init__.pynew file:   myproject/__pycache__/__init__.cpython-36.pycnew file:   myproject/__pycache__/admin.cpython-36.pycnew file:   myproject/__pycache__/apps.cpython-36.pycnew file:   myproject/__pycache__/consumers.cpython-36.pycnew file:   myproject/__pycache__/models.cpython-36.pycnew file:   myproject/__pycache__/routing.cpython-36.pycnew file:   myproject/__pycache__/tests.cpython-36.pycnew file:   myproject/__pycache__/urls.cpython-36.pycnew file:   myproject/__pycache__/views.cpython-36.pycnew file:   myproject/admin.pynew file:   myproject/apps.pynew file:   myproject/consumers.pynew file:   myproject/migrations/__init__.pynew file:   myproject/migrations/__pycache__/__init__.cpython-36.pycnew file:   myproject/models.pynew file:   myproject/routing.pynew file:   myproject/tests.pynew file:   myproject/urls.pynew file:   myproject/views.pynew file:   templates/chat/index.htmlnew file:   templates/chat/room.html#将增加的文件提交到本地仓库,并描述代码内容为“django_channel”
F:\django_channel>git commit -m 'django-channel'
[master (root-commit) b5ce108] 'django-channel'49 files changed, 1803 insertions(+)create mode 100644 .idea/dataSources.local.xmlcreate mode 100644 .idea/dataSources.xmlcreate mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647.xmlcreate mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadatacreate mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata.keystreamcreate mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata.keystream.lencreate mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata.lencreate mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata_icreate mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata_i.lencreate mode 100644 .idea/django_channel.imlcreate mode 100644 .idea/inspectionProfiles/profiles_settings.xmlcreate mode 100644 .idea/misc.xmlcreate mode 100644 .idea/modules.xmlcreate mode 100644 .idea/vcs.xmlcreate mode 100644 .idea/workspace.xmlcreate mode 100644 db.sqlite3create mode 100644 django_channel/__init__.pycreate mode 100644 django_channel/__pycache__/__init__.cpython-36.pyccreate mode 100644 django_channel/__pycache__/routing.cpython-36.pyccreate mode 100644 django_channel/__pycache__/settings.cpython-36.pyccreate mode 100644 django_channel/__pycache__/urls.cpython-36.pyccreate mode 100644 django_channel/__pycache__/wsgi.cpython-36.pyccreate mode 100644 django_channel/routing.pycreate mode 100644 django_channel/settings.pycreate mode 100644 django_channel/urls.pycreate mode 100644 django_channel/wsgi.pycreate mode 100644 manage.pycreate mode 100644 myproject/__init__.pycreate mode 100644 myproject/__pycache__/__init__.cpython-36.pyccreate mode 100644 myproject/__pycache__/admin.cpython-36.pyccreate mode 100644 myproject/__pycache__/apps.cpython-36.pyccreate mode 100644 myproject/__pycache__/consumers.cpython-36.pyccreate mode 100644 myproject/__pycache__/models.cpython-36.pyccreate mode 100644 myproject/__pycache__/routing.cpython-36.pyccreate mode 100644 myproject/__pycache__/tests.cpython-36.pyccreate mode 100644 myproject/__pycache__/urls.cpython-36.pyccreate mode 100644 myproject/__pycache__/views.cpython-36.pyccreate mode 100644 myproject/admin.pycreate mode 100644 myproject/apps.pycreate mode 100644 myproject/consumers.pycreate mode 100644 myproject/migrations/__init__.pycreate mode 100644 myproject/migrations/__pycache__/__init__.cpython-36.pyccreate mode 100644 myproject/models.pycreate mode 100644 myproject/routing.pycreate mode 100644 myproject/tests.pycreate mode 100644 myproject/urls.pycreate mode 100644 myproject/views.pycreate mode 100644 templates/chat/index.htmlcreate mode 100644 templates/chat/room.html#添加git远程仓库也就是github中创建的项目地址
F:\django_channel>git remote add origin git@github.com:grub007/django_channel.git#将本地仓库内容提交至远程仓库
F:\django_channel>git push -u origin master
Enumerating objects: 60, done.
Counting objects: 100% (60/60), done.
Delta compression using up to 4 threads
Compressing objects: 100% (55/55), done.
Writing objects: 100% (60/60), 29.67 KiB | 427.00 KiB/s, done.
Total 60 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), done.
To github.com:grub007/django_channel.git* [new branch]      master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.F:\django_channel>

转载于:https://www.cnblogs.com/grub007/p/10036696.html

通过git命令将本地代码文件推送至github相关推荐

  1. Git命令实现本地文件推送到git仓库

    Git命令实现本地文件推送到git仓库 前提: ①确定本机(windows环境)已经安装git(Git - Downloads) ②建立好远程Git仓库 1.在你想推送的文件夹下:右键→选择Git B ...

  2. 使用Git命令将本地文件推送至远程仓库

    使用git命令将本地文件推送至远程仓库 具体操作如下 1. 进入项目文件夹,通过命令 git init把这个目录变成 可以管理的仓库 git init 2. 把文件添加到版本库中,使用命令 git a ...

  3. Git使用及创建本地文件推送到github仓库

    Git使用 一.安装Git 一般我们工作的电脑都是Windows系统,要使用git首先要进行安装.从软件管家或者其他平台找到git的安装包,下载后默认安装即可. 安装成功之后,可以在开始菜单里面找到g ...

  4. windows git安装到把项目推送到github

    为什么80%的码农都做不了架构师?>>>    1. 下载mygit一路下一步默认安装 2.下载TortoiseGit 3. 设置git     $ git config --glo ...

  5. git 连接远程仓库并推送代码

    git 初始化 在所需推送的文件夹/父文件夹(后面将会解释两者的不同)下打开 git Bash,并输入下面命令进行初始化: git init git 设置连接远程仓库 在 github 上找到你需要连 ...

  6. Git版本回退并强制推送到远端

    Git版本回退并强制推送到远端 本文参考廖雪峰的Git教程 前言:本文章解决问题的前提是本人不小心修改了本地代码仓库的最外层目录权限,不知道原权限是什么,导致本地git提示几十个文件被修改过,实际内容 ...

  7. 本地代码推送到github仓库

    本地代码推送到github仓库步骤: 1.git 初始化 cd 到需要提交的项目目录下,执行git init 2.添加文件到缓存区 git add filename // 添加文件到缓存区,可单一文件 ...

  8. Linux git环境搭建和常用指令--推送至Github为例

    安装Git sudo apt-get install git 提交代码信息配置 $ git config --global user.name "runoob" $ git con ...

  9. 基于Web的文件管理系统,支持Office、WPS预览/编辑、在线解压缩、文件分享、文件加密、远程存储、远程文件推送、秒传、断点

    基于Web的文件管理系统,支持权限管理.历史版本管理.Office预览/编辑.WPS预览/编辑.在线解压缩.文件分享.文件加密.远程存储.远程文件推送.秒传.断点续传.智能搜索.文件备注.本地自动备份 ...

最新文章

  1. linux下如何查看驱动?(CH341)
  2. 把sqlserver中存储过程改写到oracle中
  3. 如何在Linux下写无线网卡的驱动
  4. linux的线程要makefile,Linux内核线程之父pid=2的kthreadd线程
  5. linux之NTP服务
  6. 如何使用Angular FormBuilder
  7. Unity面试题精选(1)
  8. Scala学习笔记(1)-环境搭建
  9. SQL NOTE-VARIABLE
  10. NLP—5.word2vec论文精读
  11. vmcore经典案例(hardlockup、softlockup、读写锁、hung、oom)
  12. html代码学习离线文档,新手学HTML代码的简易方法
  13. Windows命令之ftp命令
  14. [渝粤教育] 广东-国家-开放大学 21秋期末考试组织行为学10068k2
  15. 2021,排名前 15 的 Vue 后台管理模板
  16. WP个人主题源码Cosy3.1.3
  17. 荣耀10鸿蒙系统禁用列表
  18. 约坡慈尉仪特诨谙凹毖仍怯滋傥丛
  19. QString与QByteArray互转
  20. python数据拟合固定参数_固定某些参数的双峰高斯分布拟合

热门文章

  1. sql顶部菜单项消失_SQL选择顶部
  2. is_callable_Python callable()和__call __()
  3. 如何在Windows即服务上安装Memcached Server
  4. MIT 6.828 main.c文件分析
  5. Python3列表推导不会再有变量泄露的问题
  6. C++基础教程,基本的输入输出
  7. C++实现整数值转中文大写
  8. 解读 V8 GC Log(二): 堆内外内存的划分与 GC 算法
  9. php curl上传文件$_FILES为空问题
  10. php 打包网站在线压缩为zip