git学习--适合初学者

此文档是笔者在一个游戏公司里面所用,学完之后,觉得记得下来会方便以后工作!
文档具体出自我总监推荐给我阅读,觉得有一定的代表性;适合初学者学习

#git学习资料:包括完整的使用教程:(commit)提交,推送(push),拉取(pull)
https://blog.csdn.net/zdx1515888659/article/details/72954000

#mac系统使用帮助可以查看以下:
https://git-scm.com/download
https://blog.csdn.net/waterbinbin/article/details/71191897
https://blog.csdn.net/u012230055/article/details/64125268

附录一下基本操作
#先连接到目标git
git config --global user.name "xuyizhong"
git config --global user.email "peterxu@legame.ly"

git clone 目标git地址
cd 目标目录下
git add 目标文件/目录
git commit -m "add 目标文件/目录"
git push -u origin master

git branch -a 查看git的分支
git push --delete origin develop 删除远程分支develop
git分支-m开发 重命名本地分支
git branch -d <BranchName> 删除本地分支

文件下载目录在这里:http://down.51cto.com/data/2448372
git工具在这里:http://down.51cto.com/data/2448374

转载于:https://blog.51cto.com/12131824/2129871

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值