随笔分类 - Git
摘要:Git Submodules vs Git Subtrees Subtrees vs Submodules The simplest way to think of subtrees and submodules is that a subtree is a copy of a repository
阅读全文
摘要:Can I disable git pull? I guess the problems you refer to are merge conflicts that may happen if your local branch diverged from the remote. In that c
阅读全文
摘要:1.put the file under %userprofile% .git_commit_template.txt [Fix] [Refactor] [Reformat] 2. git config --global commit.template ~/.git_commit_template.
阅读全文
摘要:git switch branch Git 2.23 came up with the new ‘ git switch ’ command, which is not a new feature but an additional command to ‘switch/change branch’
阅读全文
摘要:Linux/Unix man page syntax conventions In man pages I come across various syntaxes to write Linux/Unix commands, which include square brackets, angula
阅读全文
摘要:Create 1.mkdir Connect_Backend_Database 2. cd Connect_Backend_Database 3. git clone url main 4. cd main 5. git worktree add -b v5 ../v5 origin/v5 6. g
阅读全文
摘要:What would I use git-worktree for? I read Github's post on git-worktree. They write: Suppose you're working in a Git repository on a branch called fea
阅读全文
摘要:Git Worktree:你从未听说过的最好的 Git 功能(英文) Git Worktrees: The Best Git Feature You’ve Never Heard Of 这篇文章简单介绍了 git worktree 功能,也就是让一个代码库的两个分支同时都可以访问的功能。 https
阅读全文
摘要:What does poc mean in project management? In project management, POC stands for "Proof of Concept." It is a prototype or early version of a product or
阅读全文
摘要:How to undo a git merge squash? If you run git merge --squash <other-branch> the working tree and index are updated with what the result of the merge
阅读全文
摘要:Git does not apply deleted files when merging an old branch into the master. How can I tell Git to apply deleted files? The only way I can fathom this
阅读全文
摘要:How to get the parents of a merge commit in git? git rev-list --parents -n 1 uk-645ec1aaab4714f7b47136e1e43744a70fc11a9f0 【the id of current commit】 f
阅读全文
摘要:Git rename from index.lock to index failed In my case, this was caused by using the same Git repo from both admin and non-admin command prompts. When
阅读全文
摘要:Updates to the Git Commit Graph Feature Finally, the most immediately-visible improvement is the time it takes to sort commits by topological order. T
阅读全文
摘要:https://github.blog/2019-11-03-highlights-from-git-2-24/#alternative-history-rewriting-tools https://github.com/newren/git-filter-repo $ git filter-br
阅读全文
摘要:Git push branch from one remote to another? A quick test making some temporary repositories shows you can construct a refspec that can do this: $ git
阅读全文
摘要:https://github.com/dahlbyk/posh-git#step-2-import-posh-git-from-your-powershell-profile $profile.AllUsersCurrentHost C:\Program Files\PowerShell\7-pre
阅读全文
摘要:How to handle git gc fatal: bad object refs/remotes/origin/HEAD error: failed to run repack I randomly hit list today while trying to garbage collect.
阅读全文
摘要:https://www.atlassian.com/git/tutorials/git-gc The git gc command is a repository maintenance command. The "gc" stands for garbage collection. Executi
阅读全文
摘要:https://github.com/ViRb3/de4dot-cex/blob/master/.gitmodules git submodule sync command - what is it for? Git stores information about submodules in tw
阅读全文