-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于Git那些事儿 #39
Comments
Git常用命令
childBranch 是你新建的分支。
其实使用本地分支的提交替代远程分支。
通过git reflog找到一个commit,然后再cherry-pick也可以。
https://www.git-tower.com/learn/git/faq/difference-between-git-fetch-git-pull
git rebase -i [hash]
第1个pick保留,其余pick改为s
:wq |
优雅使用Git的一些实践
找到对应的commit hash值
暂存区:git已经获得了对文件的管理权限,暂存区文件有状态:new file,deleted,modified等等。
仅仅删除working tree不删除index的情况,不存在。
包含tree,parent,author和commiter。
包含tree,blob。
就是一个具体的文件。
注意:不能在团队的集成分支上,做这样的变更,仅适用于本地。
但是在scrum的情况下,迭代非常快速,若所有feature都升级minor,会导致minor数字很大,该怎么处理这种情况?
1. git checkout feature
2. git rebase master
3. resolve conflicts
4. git add .
5. git rebase --continue
|
oh-my-zsh 常用命令缩写全写对照表
使用小技巧
|
内容包括:
The text was updated successfully, but these errors were encountered: