随笔分类 -  Git

摘要:还没有commit之前,需要撤销。 最暴力的,直接用git reset --hard HEAD How to undo a git merge squash? If you run git merge --squash <other-branch> the working tree and inde 阅读全文
posted @ 2019-09-05 10:37 ChuckLu 阅读(1243) 评论(0) 推荐(0) 编辑
摘要:假设需要查看的分支为temp 1.git show temp 通过这个可以拿到commit id 2.查看TortoiseGit的日志,左下角勾选所有分支 3.在日志界面搜索commit id,然后右键选中对应的commit,选择show branches this commit is on 4.在 阅读全文
posted @ 2019-09-05 10:24 ChuckLu 阅读(428) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/2221658/whats-the-difference-between-head-and-head-in-git Rules of thumb Use ~ most of the time — to go back a num 阅读全文
posted @ 2019-07-02 13:26 ChuckLu 阅读(349) 评论(0) 推荐(0) 编辑
摘要:https://docs.gitlab.com/ee/workflow/gitlab_flow.html https://docs.gitlab.com/ee/topics/gitlab_flow.html 阅读全文
posted @ 2019-06-12 09:56 ChuckLu 阅读(506) 评论(0) 推荐(0) 编辑
摘要:https://github.com/git-for-windows/git/issues/2206 https://git-scm.com/docs/git-filter-branch The --env-filter option can be used to modify committer 阅读全文
posted @ 2019-05-29 10:17 ChuckLu 阅读(736) 评论(0) 推荐(0) 编辑
摘要:What are the differences between double-dot “..” and triple-dot “…” in Git commit ranges? Using Commit Ranges with Git Log When you're using commit ra 阅读全文
posted @ 2019-05-27 12:59 ChuckLu 阅读(601) 评论(0) 推荐(0) 编辑
摘要:查看git status,发现所有文件都被修改。 git diff文件查看,发现是行尾的问题导致的。 https://github.com/Microsoft/WSL/issues/184 在wsl里面执行git config --global core.autocrlf true 然后再git s 阅读全文
posted @ 2019-05-26 09:31 ChuckLu 阅读(960) 评论(0) 推荐(0) 编辑
摘要:GIT: change commit date to author date git filter-branch --env-filter 'export GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"' Short Answer: Explanation: filter 阅读全文
posted @ 2019-05-25 10:53 ChuckLu 阅读(1681) 评论(0) 推荐(0) 编辑
摘要:分支回退 git checkout - 目录回退 cd - 阅读全文
posted @ 2019-05-24 16:14 ChuckLu 阅读(749) 评论(0) 推荐(0) 编辑
摘要:! [remote rejected] master -> master (shallow update not allowed) https://stackoverflow.com/questions/28983842/remote-rejected-shallow-update-not-allo 阅读全文
posted @ 2019-05-17 21:51 ChuckLu 阅读(4203) 评论(0) 推荐(0) 编辑
摘要:https://help.github.com/en/articles/checking-out-pull-requests-locally https://github.com/betaflight/betaflight/pull/8112/ git fetch origin pull/ID/he 阅读全文
posted @ 2019-05-14 13:37 ChuckLu 阅读(174) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/azure/devops/repos/git/git-branching-guidance?view=azure-devops Name your feature branches by convention Use a consis 阅读全文
posted @ 2019-05-13 13:48 ChuckLu 阅读(237) 评论(0) 推荐(0) 编辑
摘要:Pull Requests with Rebase Edward Thomson https://docs.microsoft.com/en-us/azure/devops/repos/git/branch-policies-overview?view=azure-devops Branch pol 阅读全文
posted @ 2019-05-13 13:39 ChuckLu 阅读(327) 评论(0) 推荐(0) 编辑
摘要:https://docs.microsoft.com/en-us/azure/devops/repos/git/set-up-credential-managers?view=azure-devops Install the Git Credential Manager Windows Downlo 阅读全文
posted @ 2019-05-13 13:31 ChuckLu 阅读(319) 评论(0) 推荐(0) 编辑
摘要:$ git push v5 v5/hotfix/5.1:hotfix/5.1-quartzerror: The destination you provided is not a full refname (i.e.,starting with "refs/"). We tried to guess 阅读全文
posted @ 2019-03-12 09:51 ChuckLu 阅读(4220) 评论(0) 推荐(0) 编辑
摘要:https://github.com/git-for-windows/git/issues/1854 https://github.com/git-for-windows/git/pull/1902/files 分了2步操作,第一步是git reset,第二部是git cherry-pick --c 阅读全文
posted @ 2019-03-02 14:58 ChuckLu 阅读(3117) 评论(0) 推荐(0) 编辑
摘要:https://tortoisegit.org/docs/tortoisegit/tgit-dug-showlog.html Repository Demo https://github.com/ChuckGitMerge/TortoiseGit-Issue3333 一共有11个commits 1. 阅读全文
posted @ 2019-02-21 19:57 ChuckLu 阅读(275) 评论(0) 推荐(0) 编辑
摘要:https://www.yuque.com/fe9/basic/nruxq8#6c228def 语雀平台 制定一个 git commit 信息的提交规范是开发团队工作流必不可少的环节。试想一下,如果查看主分支上的历史库也就是你查看 git log 的时候,打印出来的信息杂乱无章的话,如果代码遇到问题 阅读全文
posted @ 2019-02-19 13:33 ChuckLu 阅读(5664) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/45556189/git-the-revocation-function-was-unable-to-check-revocation-for-the-certificate It's always a bad idea to 阅读全文
posted @ 2019-01-28 13:32 ChuckLu 阅读(1064) 评论(0) 推荐(0) 编辑
摘要:https://stackoverflow.com/questions/6842687/the-remote-end-hung-up-unexpectedly-while-git-cloning Quick solution: With this kind of error, I usually s 阅读全文
posted @ 2019-01-28 12:50 ChuckLu 阅读(553) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示