git squash merge
keep version control history clean and readablegit commit --allow-empty -m 'it works!'
blank commits to kick off workflow
-
git subtree add -P some/dir --squash http://url/some-repo.git remoteBranch
将项目中的某个子目录分离出来提交到新的 repo; -
add/push/pull
添加/推送/拉去(类比 git 常规操作) -
git subtree split -P some/dir -b newBranch
分离到新分支,可以将新分支提交到指定 repo
-
git checkout -b new_branch
新建branch -
git ls-files -v | grep ^h
show files has “assume unchanged” bit set
- core.editor=code --wait
- alias.fastci=commit -a --no-verify