git github的连接,初次上传代码。初次下载代码。

Git和Github本地上传下载及拉取他人代码 Git和Github本地上传下载及拉取他人代码 闻道有先后,术业有专攻(自己瞎搞一两个小时,没有后端老王15分钟来的透彻) 一:通过Git把Github上的代码下载到本地 !首先是什么!!下载Git,下面是链接 https://git-scm.com/download/ 下载成功后,具体安装自行百度(一直下一步也行),打开就是这样子 !其次 ... 阅读详情

目录

一、git的ssh key配置:

二、初次上传代码

三、初次下载代码


 

当然,在这之前,你肯定要先配置好ssh的key

一、git的ssh key配置:

(在bash界面输入 ssh-keygen -t rsa -C "demo123@qq.com" //引号内容是你在github上注册的邮箱),

以及在github上保存了你的公钥[key](点击头像->settings->SSHand GPG Keys->new SSH key。title自己起,

(gitlab上的公钥[key]存储路径是:点击头像->settings->SSH Keys。title随便取名)

key为C:\Users\DELL\.ssh\id_rsa.pub 文件的内容,即图中的提示路径文件,用记事本打开)。

 

二、初次上传代码

我们在github上建立完repository之后,在code的tab页中会有这么一段代码,告诉你如何进行提交代码
首先,在你需要提交内容的目录打开 git bash (或者打开git bash后进入的该目录)

 


git init
git add .
git commit -m "first commit"
git remote add origin git@github.com:bof-jangle/myTestDemo.git
git push -u origin master

git init 初始化

git add . 提交目录下的所有内容

git commit -m "注释内容" 提交到本地缓存,并填写注释内容。

git remote add origin xxx   这是连接的远程仓库地址, xxx可以是ssh的url也可以是https的url。   在code界面可以选择。

git push -u origin master  这个是提交到服务器上


三、初次下载代码

0、下载代码(一样需要先配置SSH的key。文章第一条):

1、找到SSH的下载地址。

2、打开git目录。git init 初始化

3、下载远程代码
git clone git@github.com:你的github用户名/仓库名.git 

如:git clone git@github.com:bof-jangle/webapp.git

 

last:如果你要提交代码,需要配置全局用户与邮箱(github上的)

git config --global user.name '你的github用户名'

git config --global user.email '你的github邮箱地址'

Git上传代码到GitHub Git上传代码到GitHub生成SSH密钥Git上传代码到GitHub 生成SSH密钥 在本地生成SSH密钥,并上传到github中。 创建方法见 Git上传代码到GitHub 步骤: 1、在本地找到要上传的代码文件路径path,如将下图中的“quickSort”上传到GitHub。 2、在当前路径左键,选择“Git Bash Here”,进入Git命令框。接下来依次输入以下命令即可。 3、git init 4、git status 5、git add quickSort/ 6、git status 7 阅读详情

相关推荐

下载和运行GitHub上的代码教程总结

从昨天开始就想着从GitHub上下载一个开源的Vue的实战项目,希望能从中学习更多的Vue的实用内容,结果搞了半天好不容易下载了,不知道怎么弄。然而,今天终于成功了,激动地我赶紧来记录一下。 如何从GitHub上下载自己需要的项目: 1.首先,你要有一个自己的GitHub(https://github.com/)的账号。关于如何注册GitHub的账号以及如何获取你的SSH密钥这个问题,请大家参...

不怕万人阻挡,只怕自己投降 29万+

github初次下载和提交代码

github 下载和提交代码 初次使用github提交代码到github服务器 1:下载代码 cd ~/DevelopDir git clone https://github.com/hku-mars/loam_livox.git 2: 一系列修改代码的操作 3:使用 git add . 添加修改到暂存区 4:使用 git commit -m “first time modifiy” 出错 ...

qq_29022265的博客 343

电动车辆的动力总成控制

手把手教你学Simulink——电动车辆的动力总成控制在汽车工程领域,电动汽车(EV)的动力总成控制系统是确保车辆性能、效率和驾驶体验的关键。动力总成控制系统通常包括电机控制、电池管理系统(BMS)、能量回收系统等组件。通过使用Simulink,我们可以模拟和测试这些系统的运行情况,优化设计,并验证控制算法的有效性。

amy_mhd的博客 967

git下载线上代码

一、下载git上的代码 1.登录gitlab账号,找到自己需要下载的项目,点击进入项目,选中clone,查看下载地址并复制。 2.在自己准备存放项目的盘新建一个文件夹,然后在文件夹空白处右键,选中Git Bash Here 3.第一次使用可能需要设置用户名和邮件,这是因为Git是分布式版本控制系统,每个机器都必须自报家门:你的名字和Email地址。如果不是第一次使用(之前有设置过),直接去第4...

weixin_42216142的博客 1万+

Android13配置selinux让system应用可读sys,proc,SN号

Android13预置的system应用,需要读/sys, /proc目录,读(SN)serial number号, 需要修改selinux配置,否则会报avc错.其修改方法会比Android11复杂一些.。

zmlovelx(帅得不敢出门 程序员群31843264) 2654

Zabbix在Ubuntu 22.04上的性能优化与监控实战:从基础安装到高级配置

本文详细介绍了在Ubuntu 22.04系统上部署和优化Zabbix监控系统的完整流程,从基础安装到高级配置。内容包括MySQL数据库设置、Zabbix服务器与Web前端优化、性能调优策略以及实战监控场景应用,帮助用户构建高效的企业级监控解决方案。

sss66的博客 893

第一次使用git将远程仓库的代码拉取到本地

首先默认你已经安装好了git的客户端,如果没安装请先确保已经安装了git的客户端再进行后续的操作。

weixin_45626078的博客 1813

Orange3实战教程:实例---文本分类

我们可以使用预测模型按作者、类型、情感等对文档进行分类。在此工作流中,我们根据文档的Aarne Thompshon Uther索引对文档进行归类,这是故事的主题定义。我们使用两个简单的学习器,Logistic回归和朴素贝叶斯,两者都可以在诺谟图中检查。然后再从可视化分类中添加列线图组件,观察哪些词对逻辑回归最重要。也可以尝试使用在朴素贝叶斯模型上,并编辑连线属性。再从模型中添加朴素贝叶斯模型,以尝试不同的学习器。

err2008的专栏 384

第一次用git拉取代码的过程(附带解释和例子

git

weixin_48047636的博客 3557

Amber&pdb4amber | 准备PDB文件

PDB文件中唯一需要或有用的数据来设置AMBER模拟是:原子名称,残基名称,也许还有链标识符(如果存在多条链),以及重原子的坐标。除非加载额外的文库,否则非蛋白质结构(特别是低分子量配体)会引起问题;如果它们在PDB文件中的名称对应于AMBER库中的内部名称,则通常会识别水和单原子离子。–dry选项移除结构中的结晶水和–reduce选项在最理想的位置添加氢原子.为tleap程序调整从外部获得的PDB文件。

ASKCOS博客 896

用Virtuoso和Abstract完成gds2lef

需要用到的工具有virtuoso和abstract。 数模混合的项目通常需要模拟完成模块设计,把接去数字的pin打上label(text),数字的floorplan才能正式开始。 如果只需要简单的数字PR boundary和pin点位置,那么只使用virtuoso就够了,还想把模拟版图都转成lef就要用到abstract工具。 1.PR boundary+pin 1)在virtuoso中打开layout a) Gui操作: Create->P&R Objects->

m0_61544122的博客 8737

第一次使用Git上传本地项目到github上

对于程序原来说都听说过GitHub,GitHub有许多开源的的项目和一些前沿的技术。因为自己在刚刚开始使用Git把自己写的一些小dome放到GitHub上遇到许多的坑,这么长时间过去了,想对第一次使用Git上传代码做一下总结,以免使自己忘记。 一.下载安装Git软件、完成用户注册、检查密钥是否存在 1.1下载Git软件:https://git-scm.com/downloads,据说ios自带的有...

qq_35429629的博客 368

checking OpenSSL library version... configure: error: OpenSSL >= 1.1.1 required (have “100020bf 解决方案

 本文主要介绍了checking OpenSSL library version… configure: error: OpenSSL >= 1.1.1 required (have “100020bf (OpenSSL 1.0.2k-fips 26 Jan 2017)”)解决方案,希望能对使用Linux的同学们有所帮助。 文章目录 1. 问题描述 2. 解决方案

weixin_43178406的博客 2万+

如何用git上传代码到github详细步骤

注册账户  想使用github,第一步肯定是要注册github账号,有了账号就是直接登录啦 可以直接打开http://github.com页面注册   创建仓库 注册、登录完成之后,在登录页面最上方用户菜单上选择 “+”->New repository 创建一个新的仓库     进入创建仓库页面取名字、点击创建仓库,将会生成你的第一个仓库 ...

zeng092210的博客 4万+

【100%通过率】华为od机试C卷【贪吃的猴子】Java&Go 实现

一只贪吃的猴子,来到一个果园,发现许多串香蕉排成一行,每串香蕉上有若干根香蕉。每串香蕉的根数由数组numbers给出。猴子获取香蕉,每次都只能从行的开头或者未尾获取,并且只能获取N次,求猴子最多能获取多少根香蕉。第一次获取香蕉为行的开头,第二次获取为行的末尾,因此最终根数为4+3 =7。全部获取所有的香蕉,因此最终根数为1+2+3 = 6。第二行为数组numbers的值每个数字通过空格分开。1:简单题目,两个指针分别指向头尾,逐个对比即可。第一行为数组numbers的长度。第三行输入为N,表示获取的次数。

MISAYAONE的博客 1435

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

【git】手把手MAC上传代码文件到Github

STEP 1 注册一个GitHub账号 STEP 2 创建github仓库=右上角➕-点击New repository Repository name: 仓库名称(会显示在主页) Description(可选): 仓库描述介绍(会显示在主页) Public, Private : 仓库权限(公开,私有) Initialize this repository with a README: 初始添加一...

Capgras的博客 5431

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

使用Git工具从GitHub上文件代码进行上传下载(图文详细)

GitHub: Where the world builds software · GitHub 此链接为GitHub官网由于GitHub是国外的网站,访问会很慢,又可能会失败。因此我提供一个工具,这个工具会加快我 们访问GitHub的速度,不至于访问不了。dev-sidecar,开发者边车,命名取自service-mesh的service-sidecar,意为为开发者打辅助的边车工具,通过本地代理的方式将https请求代理到一些国内的加速通道上。...

牧子川的博客 4439

IEM模型,地表粗糙度模拟

利用微波反演土壤水分时候,利用IEM模型可以实现对随机地表的模拟

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

GitHub初次使用及上传代码

Github的初次使用 此篇文章,仅记录在初次使用Github的账号注册及初次上传代码步骤。(截图为个人使用后的截图,与初次注册略有不同) 一 、Github账号的注册及创建代码库 1.注册账号 进入Github官网:https://github.com/,出现如下接界面,依次输入注册的用户名、需要绑定的邮箱、设置的密码,点击注册按钮。 2.代码库的创建 账号登入之后,会出现如下界面,点击“St...

qq_43745622的博客 617

git 上传代码到 github

git 学习

学习记录 1559

mac环境通过git上传代码至github

最近打算把自己用sublime text2写的一些小项目通过git传到github上,但是,发现网上介绍的,大部分都是windows环境下的。这篇主要是介绍在mac环境下如何配置git 和github的集成。 一、安装git     1.下载git客户端程序,地址为:https://git-scm.com/download/mac。即可以下载到最新的客户端程序,我安装的是git2.8.1,目前...

黄玮鹏的专栏 4101

github上传代码步骤

github上传代码步骤 标题

qq_16719585的博客 3313

IDEA git上传码云、GitHub、华为云

文章目录Git下载、安装、配置git下载git安装IDEA配置git1.初始化本地库2.idea添加配置git上传平台华为云码云GitHub上传常见错误 Git下载、安装、配置 git下载 下载地址https://git-scm.com/ git安装 git的安装其实比较简单,完全可以一键next到底。 但是需要注意的是: 在这里你可以根据自己的需要来配置,而其他的则不需要修改。 IDEA配置git 1.初始化本地库 打开git bash 输入git config --global user.name

记录一只菜鸡的成长之路 1292

git上传代码到Github

分享如何将代码上传到Github上,以及常见的问题

ssijsick的博客 1273

关于新手如何使用Git上传项目代码到github

关于新手如何使用Git上传项目代码到github github是一个基于git的代码托管平台,付费用户可以建私人仓库,我们一般的免费用户只能使用公共仓库,也就是代码要公开。   注册github的账户以及创建仓库 要想使用github第一步当然是注册github账号了。之后就可以创建仓库了(免费用户只能建公共仓库),Create a New Repository,填好名称后Create

joy_YuanQL的博客 7794

如何利用Git将代码上传至Github?

在做科研时经常将本地的代码或项目上传至Github仓库,本人整理了最详细的使用Git将本地项目或代码上传到Github的方法。此外,我还总结了上传过程中可能遇到的问题。读者一文便可学习所有上传的知识。

bynacqt的博客 1487

github文件的下载和上传(使用git)

一、注册github,创建本地库,下载git 参考:https://www.jianshu.com/p/a152f82c5e4a 注意: (1)git账户 因为Git是分布式版本控制系统,所以,每个机器都必须自报家门:你的名字和Email地址。账号申请完成后,打开命令行或者Git Bash,输入 git config --global user.name "Your Name",之后回车,再输入 git config --global user.email email@example.com 其中Y

weixin_46045729的博客 3150
上一篇: jQuery整体结构图
下一篇: 如何检查自己项目中的ajax等请求是同步的还是异步的
博风
博客等级 码龄16年 442粉丝 357原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值