-
Notifications
You must be signed in to change notification settings - Fork 2
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使用指南 #108
Comments
git cachehttps://blog.csdn.net/chichoxian/article/details/80638031 删除commit(暂存区)中的文件(git) 解决的问题是:向暂存区提交了多余的文件。 解决方法: 查看暂存区文件: git ls-files 记住要删除的文件名,从暂存区删除该文件:git rm --cache 文件名 删除后可以再次查看暂存区的文件是否已经删除了,使用命令后都会正常删除。 |
git reset --hard 后如何补救(最后的救命稻草) |
push文件过大解决 |
【经验】Git|如何删除错误的commit?(存在大文件无法push的commit、不需要的commit等情况) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
git merge
理解
工具用来合并一个或者多个分支到你已经检出的分支中。 然后它将当前分支指针移动到合并结果上。git help merge命令查看具体描述。
将topic分支merge到master分支上(更新master分支),使用git merge topic
使用准则
merge或者pull之前本地仓库是干净的应当commit本地,保证merge之后不会被破坏。或者git stash储藏本地的修改
命令速查
参考
git help merge
高级合并
The text was updated successfully, but these errors were encountered: