git 添加本地分支, clean

//以develop为源创建本地分支fromdevelop

git checkout -b fromdevelop

git add .

git commit -m "local"

git checkout -b local/dev

//切换到远程分支.

git checkout dev

git clean_git clean -f -d-CSDN博客

git clean -f -d #删除当前目录下没有被track过的文件和目录

git clean -f

git clean -d

git merge local/dev

合并fromdevelop分支到develop分支上:

首先切换到develop分支,再执行: git merge fromdevelop

git reset HEAD^1

git reset HEAD^1-CSDN博客

相关推荐
像风一样自由20201 小时前
Git 进阶使用指南
git
jstart千语10 小时前
【Git】连接github时的疑难杂症(DNS解析失败)
git·github
工具罗某人11 小时前
TortoiseGit使用图解
git
Zhuai-行淮11 小时前
vscode和git 踩坑
ide·git·vscode
这颗橘子不太甜QAQ12 小时前
Husky使用技巧
javascript·git·代码规范
fanTuanye13 小时前
Git基本使用(很详细)
git·github
忍者扔飞镖13 小时前
git
git
李菠菜14 小时前
解决Windows系统下Git克隆时报错“unable to checkout working tree”的方法详解
windows·git
island131415 小时前
【git#4】分支管理 -- 知识补充
大数据·git·elasticsearch
船长@Quant16 小时前
协作开发攻略:Git全面使用指南 — 引言
git·版本控制·源代码管理·协作开发