github使用

====================注册安装==========================

1) github网站上注册、用户名、密码、邮箱

2)安装github for windows客户端

=====================done============================


=====================使用 git bash ============================

1) 网站上new 一个 repository, 会要求制定该repo的名字

2) 本地磁盘上建好同名的目录

3)在该目录下 git init

4)在该目录下放好项目文件

5)git add filename

6)git commit -m "logs"    ========到目前为止,2-6步都是在本地磁盘上的操作,文件还没add/commit到github网站

7)git remote add origin https://github.com/username/repoName.git========只有第一次提交时需要执行该操作

8)git push origin master




=====================使用git gui=============================

1) 网站上new 一个 repository, 会要求制定该repo的名字

2) 本地磁盘上建好同名的目录

3)在该目录下 git init

4)在该目录下放好项目文件

5)启动git gui,  点击重新扫描, 选中  改动过或者新增的文件, 点击 commit/缓存为提交   (git add);; 或者直接“缓存改动” 提交所有

6)点击提交,填写log信息

7)remote/add, 名字为origin, location为repo.git的https连接地址========只有第一次提交时需要执行该操作

8)git push origin master



======================download到本地 bash方式;  gui方式还没弄好======================

1)选择一个github repo

2)点击fork; 会加到自己的repo中

3)git clone https://github.com/username/opencc.git   //复制到本地; 但以后的修改只会提交到自己的repo副本中; 如果需要提交到源,还需要如下修改

4)cd repo;

git remote add upstream https://github.com/octocat/Spoon-Knife.git
git fetch upstream


获取最新修改到本地
git fetch upstream
# Fetches any new changes from the original repository
git merge upstream/master
# Merges any changes fetched into your working files




git push origin master            //提交自己的修改

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值