ChelesteWang / FE-Review

前端知识复盘与整理
Apache License 2.0
31 stars 8 forks source link

Git 应用杂谈 #31

Open ChelesteWang opened 2 years ago

ChelesteWang commented 2 years ago

.gitignore 不生效的解决方案

git rm -r --cached .
git add .
git commit -m "update .gitignore"
ChelesteWang commented 2 years ago

git ckerry-pick 从 A 分支 copy commit 到 B 分支

git checkout v2.0
git cherry-pick <commitHash> // v3.0 分支做的提交