Git Learning Part III - working remotely (Github)

本文详细介绍了如何使用GitHub进行项目上传、直接上传、修改上传以及下载项目的方法。包括初始化仓库、推送新分支、添加远程仓库等具体步骤,适用于初学者快速上手。

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

help document of Github : https://help.github.com/

 upload

1.1 new update

 Initialize a repository 

Create a repositoy and name it while selecting "with a  README" option.

 tips:

1.push a new branch to the remote : $ git push -u origin <branch name>

2.add your remote: $ git remote add origin <URL>

3.check your remote: $git remote -v

 

4.change your remote: $ git remote set-url origin <URL>

1.2 upload directly

 Type $ git push  after checking the remote to upload your repo directly.

 

1.3 upload modification

 Edit the file and use $ git push to update modifications to remotes.

check Github:

 

2 download

2.1 download your repo

Copy the URL of the repository to clone. Simply click on the clipboard button on the right side.

 

Go to the local root folder and open a Bash Shell within it.

 Type $ git clone https://github.com/LuoYuY/fisrt-repo.git

Check the folder.Git had created a new first-repo folder that contains the downloaded copy of our repository.

 

2.2 download others' work

 Find the repo you want and click on the fork button. Then clone it in your Github.

 

转载于:https://www.cnblogs.com/luiyuying/p/9528655.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值