Windows下如何如何将项目上传至GitHub?

安装git客户端

进入官网,点击右侧下载windows版本的软件包
在这里插入图片描述
·
·
在这里插入图片描述
·
·
在这里插入图片描述
·
如果下载慢的话,给一个传送门,可以快速下载:
在这里插入图片描述

·
·
·
在这里插入图片描述
·
双击安装
在这里插入图片描述
一直点击下一步就可,安装位置可以自己选择一下

Github创建仓库

在这里插入图片描述
填写项目名称以及base 描述
在这里插入图片描述
·
在git安装目录双击启动git bash

在这里插入图片描述
·
在这里插入图片描述
·
使用cd 命令 转移到预上传的项目的目录下
在这里插入图片描述
·
输入pwd查看当前文件夹位置
在这里插入图片描述

使用如下命令创建git仓库

先设置email和username

git config --global user.email 'your email'
git config --global user.name 'your name'

创建本地仓库并与github仓库关联

git init  #将该文件夹变成Git可以管理的仓库
git add .  #将所有文件提交到暂存区
git commit -m '说明'   #提交到版本库中
git remote add origin https://github.com/ikm565/PyQt-QQ.git
#将本地仓库与GitHub网站的仓库进行关联。

github仓库链接在这:
在这里插入图片描述
·
·
·
在将本地仓库与GitHub网站上的仓库进行关联后,便可进行推送了,但是在进行推送时,GitHub网站上的仓库并非是空的,因此需要将两者进行合并才行。

git pull --rebase origin master #合并
git push -u origin master  #推送

在这里插入图片描述
再次查看仓库,已经有了项目:
在这里插入图片描述

如果更新了项目,通过以下命令进行维护:

git add -A               #将文件的修改上传到暂存区
git commit -m '说明'      #提交到本地仓库
git push origin master   #推送到GitHub仓库

附上我的构建过程:

pwd20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git remote add origin  https://github.com/ikm565/PyQt-QQ.git
fatal: remote origin already exists.20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git remote add origin https://github.com/ikm565/PyQt-QQ.git
fatal: remote origin already exists.20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git pull --rebase origin master
fatal: 'pwd' does not appear to be a git repository
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git init
Reinitialized existing Git repository in D:/workspace/python Workspace/py-communicate-final/.git/20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git add .20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git commit -m 'first git'
On branch master
nothing to commit, working tree clean20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git init
Reinitialized existing Git repository in D:/workspace/python Workspace/py-communicate-final/.git/20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git init
Initialized empty Git repository in D:/workspace/python Workspace/py-communicate-final/.git/20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git add .
warning: LF will be replaced by CRLF in .gitignore.
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 Dialog_add.ui.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in frist.qrc.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in group.ui.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in login.ui.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in main_interface.ui.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in single_person.ui.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in web绔?.idea/dbnavigator.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in web绔?.idea/flasky.iml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in web绔?.idea/misc.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in web绔?.idea/modules.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in web绔?.idea/vcs.xml.
The file will have its original line endings in your working directory
warning: LF will be replaced by CRLF in web绔?.idea/workspace.xml.
The file will have its original line endings in your working directory20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git commit -m 'first git'
[master (root-commit) 21e64c4] first git83 files changed, 5155 insertions(+)create mode 100644 .gitignorecreate mode 100644 .idea/inspectionProfiles/profiles_settings.xmlcreate mode 100644 .idea/misc.xmlcreate mode 100644 .idea/modules.xmlcreate mode 100644 .idea/pyqt5-QQ.imlcreate mode 100644 .idea/workspace.xmlcreate mode 100644 Dialog_add.pycreate mode 100644 Dialog_add.uicreate mode 100644 frist.qrccreate mode 100644 group.pycreate mode 100644 group.uicreate mode 100644 image/Icon_head.jpegcreate mode 100644 image/Icon_head.pngcreate mode 100644 image/Icon_logger.pngcreate mode 100644 image/Icon_user.pngcreate mode 100644 image/QQ1.jpgcreate mode 100644 image/QQicon.icocreate mode 100644 image/contact_green.pngcreate mode 100644 image/icon.jpgcreate mode 100644 image/myicon_1.jpegcreate mode 100644 image/myicon_1.pngcreate mode 100644 image/partjob.pngcreate mode 100644 image/qq.jpegcreate mode 100644 image/wechat.pngcreate mode 100644 login.pycreate mode 100644 login.uicreate mode 100644 main_interface.pycreate mode 100644 main_interface.uicreate mode 100644 res/0.jpgcreate mode 100644 res/1.jpgcreate mode 100644 res/10.jpgcreate mode 100644 res/11.jpgcreate mode 100644 res/12.jpgcreate mode 100644 res/13.jpgcreate mode 100644 res/14.jpgcreate mode 100644 res/15.jpgcreate mode 100644 res/16.jpgcreate mode 100644 res/16.pngcreate mode 100644 res/17.jpgcreate mode 100644 res/18.jpgcreate mode 100644 res/19.jpgcreate mode 100644 res/2.jpgcreate mode 100644 res/20.jpgcreate mode 100644 res/21.jpgcreate mode 100644 res/22.jpgcreate mode 100644 res/23.jpgcreate mode 100644 res/24.jpgcreate mode 100644 res/25.jpgcreate mode 100644 res/3.jpgcreate mode 100644 res/4.jpgcreate mode 100644 res/5.jpgcreate mode 100644 res/6.jpgcreate mode 100644 res/7.jpgcreate mode 100644 res/8.jpgcreate mode 100644 res/9.jpgcreate mode 100644 res/default.icocreate mode 100644 res/log.icocreate mode 100644 server.pycreate mode 100644 server_downloads/0.jpgcreate mode 100644 server_downloads/1.jpgcreate mode 100644 server_downloads/13.jpgcreate mode 100644 server_downloads/4.jpgcreate mode 100644 server_downloads/6.jpgcreate mode 100644 server_downloads/7.jpgcreate mode 100644 single_person.pycreate mode 100644 single_person.uicreate mode 100644 test/test.pycreate mode 100644 test/test2.pycreate mode 100644 "web\347\253\257/.idea/dbnavigator.xml"create mode 100644 "web\347\253\257/.idea/flasky.iml"create mode 100644 "web\347\253\257/.idea/misc.xml"create mode 100644 "web\347\253\257/.idea/modules.xml"create mode 100644 "web\347\253\257/.idea/vcs.xml"create mode 100644 "web\347\253\257/.idea/workspace.xml"create mode 100644 "web\347\253\257/__init__.py"create mode 100644 "web\347\253\257/config.py"create mode 100644 "web\347\253\257/register/__init__.py"create mode 100644 "web\347\253\257/register/main_app.py"create mode 100644 "web\347\253\257/register/templates/change.html"create mode 100644 "web\347\253\257/register/templates/change_after.html"create mode 100644 "web\347\253\257/register/templates/change_sign.html"create mode 100644 "web\347\253\257/register/templates/loginin.html"create mode 100644 "web\347\253\257/register/templates/regist.html"20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git remote add origin https://github.com/ikm565/PyQt-QQ.git20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git pull --rebase origin master
fatal: couldn't find remote ref master20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git push -u origin master
Enumerating objects: 88, done.
Counting objects: 100% (88/88), done.
Delta compression using up to 8 threads
Compressing objects: 100% (85/85), done.
Writing objects: 100% (88/88), 437.98 KiB | 13.27 MiB/s, done.
Total 88 (delta 14), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (14/14), done.
To https://github.com/ikm565/PyQt-QQ.git* [new branch]      master -> master
Branch 'master' set up to track remote branch 'master' from 'origin'.20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git ass -A
git: 'ass' is not a git command. See 'git --help'.The most similar commands areaddaskpasslfsstash20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git add -A20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ git commit -m 'first git'
On branch master
Your branch is up to date with 'origin/master'.nothing to commit, working tree clean20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$ ^C20626@LAPTOP-T9NGUSPL MINGW64 /d/workspace/python Workspace/py-communicate-final (master)
$

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/508017.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

(pytorch-深度学习系列)pytorch卷积层与池化层输出的尺寸的计算公式详解

pytorch卷积层与池化层输出的尺寸的计算公式详解 注:这篇blog写的不够完善,在后面的CNN网络分析padding和stride详细讲了公式,感兴趣的可以移步这里:卷积神经网络中的填充(padding)和步幅(stride) 要设计卷积神经网络的结构&…

idea创建springboot项目,一直在reading pom.xml

problem:遇到的问题 idea创建springboot项目,一直在reading pom.xml 解决方法有三种: (1)修改windows配置文件 c;\windows\System32\drivers\etc\hosts将12.0.0.1 localhost前的注释符号#去掉 (2&#x…

springboot 项目实战 基本框架搭建(IDEA)

springboot 项目实战 基本框架搭建(IDEA) IDEA下载 我使用的是破解的专业版IDEA,使用权一直到2089年: 下载IDEA: 下载processional版本,然后百度搜索激活码即可概率激活,如果你不成功就多找几个激活码 配…

使用IDEA 连接mysql数据库,执行sql指令

使用IDEA 连接mysql数据库,执行sql指令 1 配置项目的SQL依赖 首先参考这篇博文,创建springboot的基本框架 在创建项目的过程中,需要选择SQL相关的依赖,如下: SQL勾选:MySQL Driver,JDBC API …

thymeleaf There was an unexpected error (type=Internal Server Error, status=500).

thymeleaf There was an unexpected error (typeInternal Server Error, status500). 使用thymeleaf依赖&#xff0c;无法访问html文件&#xff0c;解决方法有以下几种可能&#xff1a; 1. 未加载thymeleaf依赖&#xff0c;打开pom.xml&#xff0c;加入依赖&#xff1a; <…

org.attoparser.ParseException: Could not parse as expression: “

Caused by: org.attoparser.ParseException: Could not parse as expression: " {field: ‘id’, title: ‘ID’, fixed: ‘left’, unresize: true, sort: true} , {field: ‘number’, title: ‘学号’, edit: ‘number’, sort: true} , {field: ‘name’, title: ‘姓…

(pytorch-深度学习系列)pytorch中backwards()函数对梯度的操作

backwards()函数对梯度的操作 对于一个新的tensor来说&#xff0c;梯度是空的&#xff1b;但当对这个tensor进行运算操作后&#xff0c;他就会拥有一个梯度&#xff1a; x torch.ones(2, 2, requires_gradTrue) print(x) print(x.grad_fn)y x 2 print(y) print(y.grad_fn)…

(pytorch-深度学习系列)pytorch实现线性回归

pytorch实现线性回归 1. 实现线性回归前的准备 线性回归输出是一个连续值&#xff0c;因此适用于回归问题。回归问题在实际中很常见&#xff0c;如预测房屋价格、气温、销售额等连续值的问题。 与回归问题不同&#xff0c;分类问题中模型的最终输出是一个离散值。我们所说的图…

(pytorch-深度学习系列)pytorch实现多层感知机(手动定义模型)对Fashion-MNIST数据集进行分类-学习笔记

pytorch实现多层感知机对Fashion-MNIST数据集进行分类&#xff08;手动定义模型&#xff09; 多层感知机&#xff1a; 多层感知机在单层神经网络的基础上引入了一到多个隐藏层&#xff08;hidden layer&#xff09;。隐藏层位于输入层和输出层之间。 输入和输出个数分别为4和…

(pytorch-深度学习系列)ResNet残差网络的理解-学习笔记

ResNet残差网络的理解 ResNet伴随文章 Deep Residual Learning for Image Recognition 诞生&#xff0c;该文章是MSRA何凯明团队在2015年ImageNet上使用的网络&#xff0c;在当年的classification、detection等比赛中&#xff0c;ResNet均获了第一名&#xff0c;这也导致了Res…

(pytorch-深度学习系列)卷积神经网络LeNet-学习笔记

卷积神经网络LeNet 先上图&#xff1a;LeNet的网络结构 卷积(6个5∗5的核)→降采样(池化)(2∗2的核&#xff0c;步长2)→卷积(16个5∗5的核)→降采样(池化)(2∗2的核&#xff0c;步长2)→全连接16∗5∗5→120→全连接120→84→全连接84→10\begin{matrix}卷积 \\ (6个5*5的核…

(pytorch-深度学习系列)深度卷积神经网络AlexNet

深度卷积神经网络AlexNet 文字过多&#xff0c;但是重点已经标出来了 背景 在LeNet提出后的将近20年里&#xff0c;神经网络一度被其他机器学习方法超越&#xff0c;如支持向量机。虽然LeNet可以在早期的小数据集上取得好的成绩&#xff0c;但是在更大的真实数据集上的表现并…

(pytorch-深度学习)包含并行连结的网络(GoogLeNet)

包含并行连结的网络&#xff08;GoogLeNet&#xff09; 在2014年的ImageNet图像识别挑战赛中&#xff0c;一个名叫GoogLeNet的网络结构大放异彩。它虽然在名字上向LeNet致敬&#xff0c;但在网络结构上已经很难看到LeNet的影子。GoogLeNet吸收了NiN中网络串联网络的思想&#…

(pytorch-深度学习)实现稠密连接网络(DenseNet)

稠密连接网络&#xff08;DenseNet&#xff09; ResNet中的跨层连接设计引申出了数个后续工作。稠密连接网络&#xff08;DenseNet&#xff09;与ResNet的主要区别在于在跨层连接上的主要区别&#xff1a; ResNet使用相加DenseNet使用连结 ResNet&#xff08;左&#xff09;…

(pytorch-深度学习)循环神经网络

循环神经网络 在nnn元语法中&#xff0c;时间步ttt的词wtw_twt​基于前面所有词的条件概率只考虑了最近时间步的n−1n-1n−1个词。如果要考虑比t−(n−1)t-(n-1)t−(n−1)更早时间步的词对wtw_twt​的可能影响&#xff0c;需要增大nnn。 这样模型参数的数量将随之呈指数级增长…

(pytorch-深度学习)使用pytorch框架nn.RNN实现循环神经网络

使用pytorch框架nn.RNN实现循环神经网络 首先&#xff0c;读取周杰伦专辑歌词数据集。 import time import math import numpy as np import torch from torch import nn, optim import torch.nn.functional as Fimport sys sys.path.append("..") device torch.d…

(pytorch-深度学习)通过时间反向传播

通过时间反向传播 介绍循环神经网络中梯度的计算和存储方法&#xff0c;即通过时间反向传播&#xff08;back-propagation through time&#xff09;。 正向传播和反向传播相互依赖。正向传播在循环神经网络中比较直观&#xff0c;而通过时间反向传播其实是反向传播在循环神经…

(pytorch-深度学习)门控循环单元(GRU)

门控循环单元&#xff08;GRU&#xff09; 循环神经网络中的梯度计算 当时间步数较大或者时间步较小时&#xff0c;循环神经网络的梯度较容易出现衰减或爆炸。虽然裁剪梯度可以应对梯度爆炸&#xff0c;但无法解决梯度衰减的问题。通常由于这个原因&#xff0c;循环神经网络在…

(pytorch-深度学习)长短期记忆(LSTM)

长短期记忆&#xff08;LSTM&#xff09; LSTM 中引入了3个门&#xff0c;即 输入门&#xff08;input gate&#xff09;遗忘门&#xff08;forget gate&#xff09;输出门&#xff08;output gate&#xff09;以及与隐藏状态形状相同的记忆细胞&#xff08;某些文献把记忆细…

(pytorch-深度学习)深度循环神经网络

深度循环神经网络 循环神经网络只有一个单向的隐藏层&#xff0c;在深度学习应用里&#xff0c;我们通常会用到含有多个隐藏层的循环神经网络&#xff0c;也称作深度循环神经网络。 下图演示了一个有LLL个隐藏层的深度循环神经网络&#xff0c;每个隐藏状态不断传递至当前层的…