(已成功)Github的使用

本文详细介绍了使用Git进行本地仓库创建、配置、上传到GitHub的全过程,包括安装Git、设置环境变量、初始化仓库、配置用户名和邮箱、上传代码等步骤,帮助开发者快速上手版本控制。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

转载自:http://blog.csdn.net/u010961465/article/details/45368583


1. 在setting里找到  Version  Control,并测试  github账号


2. 连接成功后

3.下载GIT核心文件

    http://git-scm.com/download/win

http://msysgit.github.io/   

http://git-scm.com/book/zh/v1/%E8%B5%B7%E6%AD%A5-%E5%AE%89%E8%A3%85-Git(安装git)


4.置git地址git.exe的完整路径),并test进行测试


5.点击VCS的enable version control intergration,进行本地仓库创建


点击ok ,在底部提示创建成功一个仓库。(可以在仓位文件夹看到对应的项目文件的详细位置查看)


6.开始上传  github

这里可能会出现 initial commit failed 

  解决:

1.git init
2.git config user.name testname
3.git config user.email "someone@someplace.com"
4.git add -f *
5.git commit -m "some init msg" 
7.Git-Add
				
8.push
					
提示push成功。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值