Git使用教程

第一步安装:
1.$ sudo add-apt-repository ppa:git-core/ppa
2.暂停时按Enter继续
3.sudo apt-get update
4.sudo apt-get install git
5.git –version
第二步上传本地项目到github:
1.在github create a repositories,copy SSH
2.git init demo_repositories
3.cd /demo_repositor
4.gedit README
5.cp -r /src .
6.git add README
7.git add .
8.git commit -m “creat a git project”
9.git remote add origin SSH(you copy ssh)
10.git push -u origin master
sucessful!
具体安装细节参考廖雪峰:
https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000
ubuntu安装细节参考:
http://blog.csdn.net/yhl_leo/article/details/50760140
windows安装细节参考:
https://www.cnblogs.com/specter45/p/github.html
errors:
1.fatal: remote orgin already exists
git remote rm orgin
2.添加SSH key
https://www.cnblogs.com/qcwblog/p/5709720.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

PI_sunyang

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值