-
Notifications
You must be signed in to change notification settings - Fork 352
Worktree aliases #104
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
Open
dabrown645
wants to merge
9
commits into
GitAlias:main
Choose a base branch
from
dabrown645:worktree-aliases
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Worktree aliases #104
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
cab0221
NEW: Added aliases for 'worktree' subcommand
dabrown645 08c3fb9
FIX: Updated README.md to link to doc/index.md
dabrown645 a70380f
Update doc/git-wtu/index.md
joelparkerhenderson 8eb4d70
Update doc/git-wtp/index.md
joelparkerhenderson 0fdc33c
Update doc/git-wtls/index.md
joelparkerhenderson 67ec019
Update doc/git-wta/index.md
joelparkerhenderson 041d53c
Update doc/git-wtl/index.md
joelparkerhenderson a64c94a
Fix: added missing wtu assignment
dabrown645 ca6abe3
Merge branch 'main' into worktree-aliases
dabrown645 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| doc/index.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| index.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| # git wt | ||
|
|
||
| ## Short for "git worktree" | ||
|
|
||
| Git alias: | ||
|
|
||
| ```git | ||
| wt = worktree | ||
| ``` | ||
|
|
||
| Example: | ||
|
|
||
| ```shell | ||
| git wt | ||
| ``` | ||
|
|
||
| worktree manages multiple workting trees attached to the same repository |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| index.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| # git wta | ||
|
|
||
| ## worktree add i.e. create a worktree and checkout <commit-ish> into it | ||
|
|
||
| Git alias: | ||
|
|
||
| ```git | ||
| wta = worktree add | ||
| ``` | ||
|
|
||
| Example: | ||
|
|
||
| ```shell | ||
| git wta foo | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| index.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
|
|
||
| # git wtd | ||
|
|
||
| ## worktree remove i.e. remove a worktree | ||
|
|
||
| Git alias: | ||
|
|
||
| ```git | ||
| wtd = worktree remove | ||
| ``` | ||
|
|
||
| Example: | ||
|
|
||
| ```shell | ||
| git wtd foo | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| index.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
|
|
||
| # git wtl | ||
|
|
||
| ## worktree lock i.e. Lock a worktree to prevent its admin files from being pruned automatically | ||
joelparkerhenderson marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Git alias: | ||
|
|
||
| ```git | ||
| wtl = worktree lock | ||
| ``` | ||
|
|
||
| Example: | ||
|
|
||
| ```shell | ||
| git wtl foo | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| index.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
|
|
||
| # git wtls | ||
|
|
||
| ## worktree list i.e. List details of each wotktree | ||
joelparkerhenderson marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Git alias: | ||
|
|
||
| ```git | ||
| wtls = worktree list | ||
| ``` | ||
|
|
||
| Example: | ||
|
|
||
| ```shell | ||
| git wtls foo | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| index.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
|
|
||
| # git wtm | ||
|
|
||
| ## worktree move i.e. move a worktree to a new location | ||
|
|
||
| Git alias: | ||
|
|
||
| ```git | ||
| wtm = worktree move | ||
| ``` | ||
|
|
||
| Example: | ||
|
|
||
| ```shell | ||
| git wtm foo | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| index.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
|
|
||
| # git wtp | ||
|
|
||
| ## worktree prune i.e. prune worktree information in ${GIT_DIR}/worktrees | ||
joelparkerhenderson marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Git alias: | ||
|
|
||
| ```git | ||
| wtp = worktree prune | ||
| ``` | ||
|
|
||
| Example: | ||
|
|
||
| ```shell | ||
| igit wtp foo | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| index.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
|
|
||
| # git wtr | ||
|
|
||
| ## worktree repair i.e. repair worktree admin files if possible | ||
|
|
||
| Git alias: | ||
|
|
||
| ```git | ||
| wtr = worktree repair | ||
| ``` | ||
|
|
||
| Example: | ||
|
|
||
| ```shell | ||
| git wtr foo | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| index.md |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
|
|
||
| # git wtu | ||
|
|
||
| ## worktree unlock i.e. unlock a worktree, allowint it to be pruned, moved, or deleted | ||
joelparkerhenderson marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| Git alias: | ||
|
|
||
| ```git | ||
| wtu = worktree unlock | ||
| ``` | ||
|
|
||
| Example: | ||
|
|
||
| ```shell | ||
| git wtu foo | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.