-
Notifications
You must be signed in to change notification settings - Fork 100
added init <dir> to show how to create a new repo #54
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,6 +106,10 @@ | |
"cmd": "branch --track <new branch name> <remote>/<branch>", | ||
"docs": "Create a new local branch from a remote-tracking branch." | ||
}, | ||
"init x": { | ||
"cmd": "init <dir>", | ||
"docs": "Create a new local Git repository in <dir>. The repository starts with no commits." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you add any translations? I have hesitated in adding new commands because of the existing translations, but I think it will be OK to add at this point, with AI and all. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm.. I only know english, and danish... So won't be of much help here... :( |
||
}, | ||
"clone x": { | ||
"cmd": "clone <repo>", | ||
"docs": "Download the repository specified by <repo> and checkout `HEAD` of the main branch." | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -194,6 +194,13 @@ export const commands = [ | |
"key": "branch --track x x", | ||
"tags": "Branching and Merging", | ||
}, | ||
{ | ||
"left": "workspace", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. My initial reaction was that this doesn't do anything to the local workspace, but only effects the local_repo. I'm curious why it's specified like that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I completely agree... Perhaps it would be better to have it:
That might be a better choice? |
||
"right": "local_repo", | ||
"direction": "dn", | ||
"key": "init x", | ||
"tags": "Creating Projects", | ||
}, | ||
{ | ||
"left": "workspace", | ||
"right": "remote_repo", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that this is a common command. I tend to use it from canned scripts (like Github that tells me how to run it), so I haven't thought of adding it, but I'm happy to.