github的简单使用

1安装git后

$ git config --global user.name "Your Name"
$ git config --global user.email "email@example.com"

2.生成本地的ssh密钥:

打开Shell(Windows下打开Git Bash)

$ ssh-keygen -t rsa -C "youremail@example.com"
2.将id_rsa.pub里的内容复制拷贝到:

github主页中的setting-->sshkeys and GPGkeys-->new ssh keys


3.下载文件:

选择所需下载的项目地址

clone and download-->git@github.com:wzcwmhp/upload.git

进入你所要下载的文件夹:

在本地文件夹:

git clone git@github.com:wzcwmhp/upload.git



2.上传文件:

需要保证本地有一个和服务器一样的仓库,

或者建立一个仓库,clone到本地,将需要上传的文件拷贝到本地的文件夹中,

git clone git@github.com:wzcwmhp/upload.git

输入一下命令:

git add -A

git commit -m 'hahahhha'

git push





评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值