准备工作1、安装Git2、在github创建账号: https://github.com/准备工作完成后,接下来我们看看上传项目的步骤:一、【创建本地仓库】:我们需创建一个本地版本库(即本地的一个存放项目的文件夹)二、【把本地仓库变成Git可管理的仓库】:选中项目文件夹右键,选择Git Bash,接着会弹出dom, 此时可以通过命令git init把这个文件夹变成Git可管理的仓库三、【
转载
2023-07-24 10:48:54
83阅读
一、准备工作1.首先需要注册github账号。https://github.com/ 2.我们使用git,需要先安装git工具,这里给出下载地址,下载后一路直接安装即可:https://git-for-windows.github.io/二、建立仓库1.进入Github首页,点击New repository新建一个项目。 2.填写相应信息后点击create即可 Repository name: 仓
转载
2024-04-11 10:46:52
35阅读
注册github,在上面新建一个代码仓库 如果本地没有存储库,先init初始化本地仓库,有的话跳过初始化步骤 如果遇到添加远程代码仓库报错 fatal: remote origin already exists 可以用下面命令先删除原来的远程代码仓库的关联,然后再添加远程代码仓库
转载
2018-12-05 21:16:00
219阅读
2评论
安装git windows客户端启动bashcd bloggit add .git commit -m "第一次提交"git remote add origin https://github.com/xxx/xxx.gitgit push -u origin master
原创
2018-03-27 16:51:49
948阅读
点赞
1.在https://github.com new repository 2.在eclipse中new project 比如:Test项目 3.右击"Test"->Team->share project... ->select a repository type:Git 勾选 Use or crea
转载
2016-05-30 23:32:00
89阅读
2评论
1.在https://github.com new repository2.在eclipse中new project 比如:Test项目3.右击"Test"->Team->share project... ->select a repository type:Git勾选 Use or create repository in parent folder
原创
2023-05-18 11:27:12
79阅读
http://my.oschina.net/OutOfMemory/blog/294133 1.在https://github.com new repository 2.在eclipse中new project 比如:Test项目 3.右击"Test"->Team->share project...
转载
2016-07-16 06:59:00
99阅读
2评论
1.在https://github.com new repository 2.在eclipse中new project 比如:Test项目 3.右击"Test"->Team->share project... ->select a repository type:Git勾选 Use or creat
转载
2016-11-29 11:36:00
77阅读
2评论
安装网络搜索,都有介绍,但是有几个地方要注意: 创建id_rsa.pub时 ssh-keygen -t rsa -C "@yahoo.com" 文件放到C:\Users\admin\.ssh下: $ ssh -T git@github.com 如有报错红线用,蓝线解决方案: $ git config ...
转载
2021-07-27 15:13:00
248阅读
2评论
一、准备工作Git是分布式版本控制系统,同一个Git仓库,可以分
原创
2018-08-14 18:08:34
51阅读
一、Git工具提交文件到GitHub 1、输入命令 cd Blog.Admin,进入Blog.Admin文件夹(即Blog.Admin仓) 依次输入以下代码即可完成其他剩余操作: git add . (注:别忘记后面的.,此操作是把Test文件夹下面的文件都添加进来) git commit -m "
转载
2020-01-04 22:35:00
100阅读
2评论
1.本地新建文件夹GIT,Git Bash打开命令窗口, ①git config --global user.name "名字" eg: git config --global user.name "ganchuanpu" git config --global user.email "邮箱地址"
转载
2016-10-22 18:36:00
114阅读
2评论
首先在项目所在目录下初始化,即gitinit,然后是提交到暂存区gitadd文件夹名,然后是提交到本地库gitcommit -m '描述'文件夹名,默认是在master分支下面的,然后在github官网上新建一个仓库,获取密钥git remote add origin 密钥(github上面的),把本地库和远程库连接起来,以后可以不使用密钥,只使用别名,别名即是origin...
原创
2021-09-03 13:47:47
144阅读
【背景】 之前看过一小部分git相关的内容,一直想搞一搞git,之前的项目一直在用svn,前段时间想将自己写的项目提交到github中进行管理,又在做spring cloud的小例子中涉及到了github管理配置文件的问题,所以就有了我的git系列博文的建立。 本篇博文就简单粗暴的写出将自己的项目提交到github的操作。【操作】1、 mkdir gitRepo#如果是已存在的工程项目...
原创
2022-12-05 16:24:32
139阅读
1.在https://github.com new repository2.在eclipse中new project 比如:Test项目3.右击"Test"->Team->share project... ->select a repository type:Git勾选 Use or create repository in parent folder of proje
转载
2016-01-02 10:10:00
117阅读
1.配置ssh key ssh-keygen -t rsa -C "注册GitHub的邮箱" Enter file in which to save the key (/c/Users/yongfengnice/.ssh/id_rsa): //提示输入key保存的文件名称,默认是用户名下的.ssh文
原创
2022-05-17 09:30:22
172阅读
pycharm 使用Git提交代码到Github pytharm 创建django项目,提交到github总是失败,在github创建项目拉下来后项目层级会多一层,为此查了一些资料,亲测如下方式可行。 1、如图在指定根目录下创建项目 2、打开项目并初始化git -- git init 3、让Pych
原创
2021-09-26 16:12:18
2531阅读
一、将自己github上的项目clone到本地,然后push:1、在本地建立一个目录(E:/my-github),将该目
原创
2022-06-16 07:29:10
3032阅读
来这里标个⭐^_^Ⅰ.cdcdcd到上传文件夹的位置先把要上传的项目文件夹整理好,打开gitgitgit如图所示,使用cdcdcd命令索引到需要上传文件夹的位置Ⅱ.输入git init初始化然后会在你那个文件夹里生成一个叫.git.git.git的文件夹别问我有什么用Ⅲ.输入git add .注意...前面是有空格的,假如没用,再试试往...后面加个空格Ⅳ.输入git commit -m "mycommit"当然双引号里面的内容随意,没什么用Ⅴ.先在githubgithubgith
原创
2021-08-27 10:04:31
247阅读
上传项目到github1、在github创建仓库2、把github拉到本地找到想要的文件夹位置打开git bash$ git remote -v 查看github上的仓库地址 $ git pull origin master + 查询到的地址3、添加文件或项目把需要的,项目或者文件拷贝进来,或者直接针对文件进行修改基本git操作指令4、更新文件到github$ git push -u or
原创
2023-02-02 11:11:23
224阅读