惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
Jina AI
Jina AI
小众软件
小众软件
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
I
InfoQ
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Martin Fowler
Martin Fowler
P
Proofpoint News Feed
MyScale Blog
MyScale Blog

博客园 - coffee~

在微信端使用Openclaw的简单配置方法--WorkBuddy 使用Termux+Proot-distro+Ubuntu+zsh在手机端配置安装Openclaw,使用Skillhub安装skill, 接入企业微信 npm切换下载源为国内的镜像源 一加13刷氧系统--OxygenOS 15 for oneplus 13 Playwright使用Typescript实现在测试case文件中调用另一个文件中的方法 Cypress实现拖拽 使用Playwright进行Web页面UI自动化测试 Python获取星期几 cd命令切换目录简写 win10在任意位置安装Linux子系统WSL Ubuntu pixel刷机没有退出谷歌账号,无法跳过开机验证 Python在一个文件中引用另一个文件的所有变量 pycharm给代码批量添加tab/取消添加tab 用Pycharm把浏览器复制出来的headers/参数给字段和值分别加单引号 Python requests.get所有参数顺序、Python requests.post所有参数顺序 windows使用快捷按键进行截图、录屏 3个瓶盖可以兑换一瓶饮料,买了n瓶饮料,一共可以喝到多少瓶 Python由字符串生成字典 Python生成随机数 Python安装包国内镜像源 QQ飞车手游UI自动化测试尝试
git基本命令
coffee~ · 2024-10-26 · via 博客园 - coffee~

git初始化

git init

git拉取代码

git clone https://www.google.com/index.git

git拉取某一个分支

git clone -b feature/123 https://www.google.com/index.git

git上传文件

git status

git add cypress/e2e/1.spec.ts

添加所有文件,使用 git add .

git commit -m "feat: 添加测试用例"

git pull

git push

git只上传指定文件

git status

git add cypress/e2e/1.spec.ts cypress/e2e/2.spec.ts cypress/e2e/3.spec.ts

git stash -u -k

git commit -m "feat: 上传测试用例"

git pull

git push

git stash pop

git删除文件

git add .

git rm cypress/1.cy.ts cypress/2.cy.ts cypress/3.cy.ts

git commit -m "fix: 删除cypress目录.cy.ts文件"

git push

git查看所有分支

git branch -a

git创建新分支并切换到新分支

git checkout -b origin/dev