bare repository A bare repository is normally an appropriately named directory with a .git suffix that does not have a locally checked-out copy of any of the...
To get a working copy of a bare repository: git clone repo_bare.git repo_copy You will get a checkout of the master branch automatically. The difference gener...
In Compare two or more repo directories, we use diff to compare directories. But it’s not intuitive to use, hard to remember and tedious to type the cli comma...
Entering info mode Execute an info command such as info diff Basic concepts An info document consists of some nodes and subnodes. A node contains a single top...
From the official features page of jsdelivr, we know that jsDelivr provides mirrors for npm, GitHub, WordPress plugins, and custom endpoints for several other...
## Question I've successfully used the following `sed` command to search/replace text in Linux: ``` sed -i 's/old_link/new_link/g' * ``` However, when I tr...
GNU diff is a fantastic tool to compare files or even directories line by line which can be found in your command line out of box. Normally, we could learn it...
VS Code supports Markdown files out of the box. But the default preview is not perfect to me anyway. For example, the rendered image always go across the whol...
Differences conclusion We have discussed three ways to get a bare repository from a normal one and we conclude their differences: Manual operation is complica...
How to convert a normal Git repository to a bare one? Move, config and rm by hand In short: replace the contents of repo with the contents of repo/.git, then...
Typing git status every time you wanted to show the working tree status has been a bit verbose. Fortunately, Git lets you create aliases, which are shortcuts...
There are a bunch of terminal commands to be used everyday. But I just want to have a rough impression which are most used? How to get the list of the command...
There is a common use case that you are working on a directory with many sub dirs and after a while it gets messy and you want to collapse all the sub dirs. W...
Normally, we use git reset to move the current branch to a new commit and optionally updates the working directory to match. But when we pass a file path, git...
Bundle the repository DESCRIPTION Create, unpack, and manipulate "bundle" files. Bundles are used for the "offline" transfer of Git objects without an active...
社交账号:
我要举报该,理由是: