用Git远程工作的几种基本使用方法,下载DOWNLOAD,覆盖OVERWRITE,上传UPLOAD。

本文详细介绍了如何在终端使用Git进行远程工作,包括连接远程分支、从远程下载文件(覆盖未提交的本地更改)、以及上传文件到远程。通过clone、checkout、fetch或pull等命令,实现与远程仓库的交互。
摘要由CSDN通过智能技术生成

如何在终端使用git

1. How to connect to remote branch using git

如何绑定远程文件库到本地

step1:下载git(DOWNLOAD GIT)
sudo apt-add-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git
step2:初始化git(Configure Git)

认证你是working branch的作者
在你的终端输入:

git config --global user.name "your_username"
git config --global user.email "your_email_address@xxx.com"
git config --global --list
step3: 复制远程文件库(clone a repository)

copy via http or ssh: copy the link start with “http” or “ssh” and paste it to your terminal
复制远程文件库的网址(以http 或者 ssh开始的连接)到你的终端

git clone ssh://git@xxx.com:7999/~wpan
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值