diff --git a/git-cheatsheet/lang/en.json b/git-cheatsheet/lang/en.json index 6ac5d31..c124d95 100644 --- a/git-cheatsheet/lang/en.json +++ b/git-cheatsheet/lang/en.json @@ -106,6 +106,10 @@ "cmd": "branch --track /", "docs": "Create a new local branch from a remote-tracking branch." }, + "init x": { + "cmd": "init ", + "docs": "Create a new local Git repository in . The repository starts with no commits." + }, "clone x": { "cmd": "clone ", "docs": "Download the repository specified by and checkout `HEAD` of the main branch." diff --git a/src/commands.mjs b/src/commands.mjs index 862b830..860e8bc 100644 --- a/src/commands.mjs +++ b/src/commands.mjs @@ -194,6 +194,13 @@ export const commands = [ "key": "branch --track x x", "tags": "Branching and Merging", }, + { + "left": "workspace", + "right": "local_repo", + "direction": "dn", + "key": "init x", + "tags": "Creating Projects", + }, { "left": "workspace", "right": "remote_repo",