#将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 master
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .idea/dataSources.local.xml
new file: .idea/dataSources.xml
new file: .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647.xml
new file: .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata
new file: .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata.keystream
new file: .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata.keystream.len
new file: .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata.len
new file: .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata_i
new file: .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata_i.len
new file: .idea/django_channel.iml
new file: .idea/inspectionProfiles/profiles_settings.xml
new file: .idea/misc.xml
new file: .idea/modules.xml
new file: .idea/vcs.xml
new file: .idea/workspace.xml
new file: db.sqlite3
new file: django_channel/__init__.py
new file: django_channel/__pycache__/__init__.cpython-36.pyc
new file: django_channel/__pycache__/routing.cpython-36.pyc
new file: django_channel/__pycache__/settings.cpython-36.pyc
new file: django_channel/__pycache__/urls.cpython-36.pyc
new file: django_channel/__pycache__/wsgi.cpython-36.pyc
new file: django_channel/routing.py
new file: django_channel/settings.py
new file: django_channel/urls.py
new file: django_channel/wsgi.py
new file: manage.py
new file: myproject/__init__.py
new file: myproject/__pycache__/__init__.cpython-36.pyc
new file: myproject/__pycache__/admin.cpython-36.pyc
new file: myproject/__pycache__/apps.cpython-36.pyc
new file: myproject/__pycache__/consumers.cpython-36.pyc
new file: myproject/__pycache__/models.cpython-36.pyc
new file: myproject/__pycache__/routing.cpython-36.pyc
new file: myproject/__pycache__/tests.cpython-36.pyc
new file: myproject/__pycache__/urls.cpython-36.pyc
new file: myproject/__pycache__/views.cpython-36.pyc
new file: myproject/admin.py
new file: myproject/apps.py
new file: myproject/consumers.py
new file: myproject/migrations/__init__.py
new file: myproject/migrations/__pycache__/__init__.cpython-36.pyc
new file: myproject/models.py
new file: myproject/routing.py
new file: myproject/tests.py
new file: myproject/urls.py
new file: myproject/views.py
new file: templates/chat/index.html
new 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.xml
create mode 100644 .idea/dataSources.xml
create mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647.xml
create mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata
create mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata.keystream
create mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata.keystream.len
create mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata.len
create mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata_i
create mode 100644 .idea/dataSources/6bc15a0f-6308-44d8-97db-d4c25c754647/_metadata_/metadata_i.len
create mode 100644 .idea/django_channel.iml
create mode 100644 .idea/inspectionProfiles/profiles_settings.xml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/vcs.xml
create mode 100644 .idea/workspace.xml
create mode 100644 db.sqlite3
create mode 100644 django_channel/__init__.py
create mode 100644 django_channel/__pycache__/__init__.cpython-36.pyc
create mode 100644 django_channel/__pycache__/routing.cpython-36.pyc
create mode 100644 django_channel/__pycache__/settings.cpython-36.pyc
create mode 100644 django_channel/__pycache__/urls.cpython-36.pyc
create mode 100644 django_channel/__pycache__/wsgi.cpython-36.pyc
create mode 100644 django_channel/routing.py
create mode 100644 django_channel/settings.py
create mode 100644 django_channel/urls.py
create mode 100644 django_channel/wsgi.py
create mode 100644 manage.py
create mode 100644 myproject/__init__.py
create mode 100644 myproject/__pycache__/__init__.cpython-36.pyc
create mode 100644 myproject/__pycache__/admin.cpython-36.pyc
create mode 100644 myproject/__pycache__/apps.cpython-36.pyc
create mode 100644 myproject/__pycache__/consumers.cpython-36.pyc
create mode 100644 myproject/__pycache__/models.cpython-36.pyc
create mode 100644 myproject/__pycache__/routing.cpython-36.pyc
create mode 100644 myproject/__pycache__/tests.cpython-36.pyc
create mode 100644 myproject/__pycache__/urls.cpython-36.pyc
create mode 100644 myproject/__pycache__/views.cpython-36.pyc
create mode 100644 myproject/admin.py
create mode 100644 myproject/apps.py
create mode 100644 myproject/consumers.py
create mode 100644 myproject/migrations/__init__.py
create mode 100644 myproject/migrations/__pycache__/__init__.cpython-36.pyc
create mode 100644 myproject/models.py
create mode 100644 myproject/routing.py
create mode 100644 myproject/tests.py
create mode 100644 myproject/urls.py
create mode 100644 myproject/views.py
create mode 100644 templates/chat/index.html
create 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>