Linux环境下的Git命令

Git操作指南
本文详细介绍了如何使用Git进行本地仓库创建、文件提交、状态检查、SSH密钥设置、远程仓库连接及分支推送等基本操作流程。

Step 1. Create local repository
cd ${FileFolder}
git init

Step 2. Commit local files into local repository
git add .
git commit -m “test”

Step 3. Check out status
git status

Step 4. Create SSH key into your GitHub account
Copy id_rsa.pub of server into your GitHub account.

Step 5. Connect local repository with remote GitHub repository
git remote add origin ${address of GitHub repository}

Step 6. Check out to target GitHub branch
git checkout -b ${branch name}

Step 7. Push files into GitHub repository
git push origin ${branch name}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值