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博客

相关推荐
言之。3 小时前
Git Hooks
git
代码AI弗森4 小时前
Git Bash 与 PowerShell:定位差异、使用场景与选择建议
开发语言·git·bash
森叶5 小时前
Git flow command error: ‘flow‘ is not a git command 问题解决
git
天麓7 小时前
git merge 举例
git
AI_56788 小时前
Git冲突治理白皮书:智能标记与可视化协同的下一代解决方案
大数据·人工智能·git·机器学习
念丶小宇8 小时前
Git常用指令
大数据·git·elasticsearch
CSDN_RTKLIB9 小时前
Git Clone
git
中二病码农不会遇见C++学姐9 小时前
.env 文件是干啥的?为什么不能提交到 Git?
git·学习
CoderJia程序员甲10 小时前
GitHub 热榜项目 - 日榜(2026-02-03)
git·ai·开源·llm·github
宴之敖者、10 小时前
Linux——git和gdb
linux·运维·git