码迷,mamicode.com
首页 > 其他好文 > 详细

vs2017使用github同步到远程

时间:2020-04-24 21:25:26      阅读:171      评论:0      收藏:0      [点我收藏+]

标签:sys   res   col   rem   git init   pos   red   repos   inf   

1,管理连接,连接到github

技术图片

登录成功

技术图片

 

2.创建本地存储库目录,G:\Git总目录,

 技术图片

创建成功,本地目录初始化成功

 

 技术图片

 

 

 3.把之前项目所需的代码复制到这个git创建的新目录

技术图片

 

 4.打开解决方案lhs.sln

技术图片

 

 

5.主页-更改,提交到暂存区

技术图片

 

 

 

6.同步-到github

技术图片

 

 6.推送

技术图片

 

 

 7.推送同步成功,远程github上就有了你的代码了!实现同步

 技术图片

 

 

 

 

其它坑记录:

git单个文件最大100M限制
删除本地文件中超过100M的文件:Resource.rar
忽略本地Resource文件

 

常用命令

git config --global http.sslVerify false

git config --global http.postBuffer 5242880000

git config --unset --global http.sslverify
git config --global core.editor "C:\Program Files\Notepad++\notepad++.exe"

$ git config --unset alias.co

git config --global core.editor "‘C:/Program Files/Notepad++/notepad++.exe‘ -multiInst -notabbar -nosession -noPlugin"

$ git config --list
$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
credential.helper=manager
user.name=zhangyanshan
user.email=824478152@qq.com
pack.windowmemory=100m
pack.sizelimit=100m
pack.threads=1
pack.window=0
core.editor=‘C:/Program Files/Notepad++/notepad++.exe‘ -multiInst -notabbar -nosession -noPlugin
http.sslverify=false
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
submodule.active=.
remote.origin.url=https://github.com/zhangvs/SKL_ERp.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
http.postbuffer=524288000
http.sslverify=“false”
user.name=zhangyanshan
user.email=824478152@qq.com

 


git init

显示隐藏文件
修改

remote.origin.url=https://github.com/zhangvs/ERP.git
git clone https://github.com/zhangvs/ERP.git ERP


常见错误
对于在git上面拉代码报"error: RPC failed; curl 56 OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054"解决方法
上传文件过大导致上传不上去

vs2017使用github同步到远程

标签:sys   res   col   rem   git init   pos   red   repos   inf   

原文地址:https://www.cnblogs.com/blogzys/p/12769959.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!