Skip to content

Commit 403cf14

Browse files
committed
update with fix
1 parent f18299d commit 403cf14

45 files changed

Lines changed: 113 additions & 133 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

content/docs/cli-guides/cli-tutorial/branching-and-commiting.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ To do this, you can use the `but branch new <branch-name>` command.
5858

5959
{/* run git branch -D user-bookmarks */}
6060

61-
```cli [branching-and-commiting-but-branch-1, 110px]
61+
```cli [branching-and-commiting-but-branch-1, 88px]
6262
but branch new user-bookmarks
6363
```
6464

@@ -72,7 +72,7 @@ but status
7272

7373
Now we can commit our unassigned changes to that branch. You can simply assign your changes to the branch first to commit later (we'll cover that later in [Rubbing](./rubbing)), but for now let's keep it simple and just commit them directly using the `but commit` command.
7474

75-
```cli [branching-and-commiting-but-commit-1, 110px]
75+
```cli [branching-and-commiting-but-commit-1, 88px]
7676
but commit -m 'all the user bookmarks'
7777
```
7878

@@ -109,7 +109,7 @@ To create a parallel branch, you simply create a new branch the same way we did
109109
{/* run echo 'test' > app/controllers/likes_controller.rb */}
110110
{/* run echo 'test' > app/models/like.rb */}
111111

112-
```cli [branching-and-commiting-but-branch-2, 110px]
112+
```cli [branching-and-commiting-but-branch-2, 88px]
113113
but branch new liked-tweets
114114
```
115115

@@ -121,7 +121,7 @@ but status
121121

122122
We can see our previous branch and the commit we made, our new empty branch and a couple of modified files. Now we can commit the unassigned changes to that branch with `but commit -m "liked tweets changes" liked-tweets`
123123

124-
```cli [branching-and-commiting-but-commit-2, 110px]
124+
```cli [branching-and-commiting-but-commit-2, 88px]
125125
but commit -m "liked tweets changes" liked-tweets
126126
```
127127

@@ -150,7 +150,7 @@ To create a new stacked branch in GitButler, you can run `but branch new` with a
150150
{/* run git branch -D liked-tweets-stacked */}
151151
{/* restore [e32713a1f41c] */}
152152

153-
```cli [branching-and-commiting-but-branch-3, 110px]
153+
```cli [branching-and-commiting-but-branch-3, 88px]
154154
but branch new -a user-bookmarks liked-tweets-stacked
155155
```
156156

@@ -160,7 +160,7 @@ but status
160160

161161
Now we can commit to our stacked branch.
162162

163-
```cli [branching-and-commiting-but-commit-3, 110px]
163+
```cli [branching-and-commiting-but-commit-3, 88px]
164164
but commit -m "liked tweets changes" liked-tweets-stacked
165165
```
166166

@@ -221,7 +221,7 @@ Now, if we want to create a commit in the `user-bookmarks` branch, we can either
221221

222222
Or, we can make a commit with _only_ the assigned files in `user-bookmarks` by using the `-o` option to `but commit`.
223223

224-
```cli [branching-and-commiting-but-commit-4, 110px]
224+
```cli [branching-and-commiting-but-commit-4, 88px]
225225
but commit -o -m "liked tweets view" bo
226226
```
227227

@@ -233,7 +233,7 @@ but st
233233

234234
Now let's commit all the rest of the changes (assigned and unassigned) to our other branch:
235235

236-
```cli [branching-and-commiting-but-commit-5, 110px]
236+
```cli [branching-and-commiting-but-commit-5, 88px]
237237
but commit -m 'bookmarks stuff' ch
238238
```
239239

content/docs/cli-guides/cli-tutorial/configuration.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ We've already covered `but config` a bit in dealing with forges and target branc
77

88
You can also use it for some basic user configuration, such as setting your name and email address for commits and your default editor.
99

10-
```cli [configuration-but-config-1, 308px]
10+
```cli [configuration-but-config-1, 286px]
1111
but config user
1212
```
1313

1414
## Aliases
1515

1616
GitButler also has a built in aliasing system in case you want to provide some shorthands.
1717

18-
```cli [configuration-but-alias-1, 308px]
18+
```cli [configuration-but-alias-1, 286px]
1919
but alias
2020
```
2121

content/docs/cli-guides/cli-tutorial/conflict-resolution.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ but status
2929

3030
Let's say that this is our status and we've decided to pull in from upstream. The changes that have been merged in by someone else upstream conflict with ours. When we run `but pull`, it will result in conflicts in our branch (but it will succeed).
3131

32-
```cli [conflict-resolution-but-pull-1, 308px]
32+
```cli [conflict-resolution-but-pull-1, 286px]
3333
but pull
3434
```
3535

content/docs/cli-guides/cli-tutorial/editing-commits.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Pretty simple.
4242

4343
Just like changing commit messages, you can also use `but reword` to change the name of a branch. So, in the above example, if we wanted to change the branch name from `user-bookmarks` to `feature-awesome-thing`, we can do this:
4444

45-
```cli [editing-commits-but-reword-1, 110px]
45+
```cli [editing-commits-but-reword-1, 88px]
4646
but reword -m feature-awesome-thing us
4747
```
4848

content/docs/cli-guides/cli-tutorial/forges.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Once it's opened, you'll get a URL you can view the pull request on.
5050

5151
In order to open a PR on GitHub, you'll need to authenticate to that forge. You can see which authentications you have by running `but config`:
5252

53-
```cli [forges-but-config-1, 506px]
53+
```cli [forges-but-config-1, 572px]
5454
but config
5555
```
5656

content/docs/cli-guides/cli-tutorial/inspecting.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This output is actually _better_ than the default Git output for this, because I
5757

5858
The `but branch` command, however, is built specifically to help you identify the branches you're looking for and give you some useful information about them. Let's give it a try:
5959

60-
```cli [inspecting-but-branch-1, 660px]
60+
```cli [inspecting-but-branch-1, 638px]
6161
but branch
6262
```
6363

@@ -77,7 +77,7 @@ The point of this listing is to help you easily see what work you have available
7777

7878
Running `but branch` defaults to running `but branch list`, which has a bunch of other options (filtering to only local or remote branches, not calculating mergability for speed, etc). The most useful option might be the filtering, for example, you can type a partial match string and it will filter the output:
7979

80-
```cli [inspecting-but-branch-2, 242px]
80+
```cli [inspecting-but-branch-2, 220px]
8181
but branch list book
8282
```
8383

@@ -93,7 +93,7 @@ git log origin/main..feature-awesome-thing
9393

9494
Now let's look at `but branch show`
9595

96-
```cli [inspecting-but-branch-3, 286px]
96+
```cli [inspecting-but-branch-3, 264px]
9797
but branch show feature-awesome-thing
9898
```
9999

@@ -105,15 +105,15 @@ The real fun one is adding `--ai`, which will take a look at the changes and sum
105105

106106
Let's run all of them at the same time:
107107

108-
```cli [inspecting-but-branch-4, 704px]
108+
```cli [inspecting-but-branch-4, 682px]
109109
but branch show sc-branch-28 --ai -r -f
110110
```
111111

112112
## Showing a Commit
113113

114114
If you want to look at a specific commit in any of these circumstances, you can use the `but show` command with the commit hash.
115115

116-
```cli [inspecting-but-show-1, 286px]
116+
```cli [inspecting-but-show-1, 264px]
117117
but show a42580b96ed7b432
118118
```
119119

content/docs/cli-guides/cli-tutorial/operations-log.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ but oplog
1717

1818
Undo the last operation:
1919

20-
```cli [operations-log-but-undo-1, 154px]
20+
```cli [operations-log-but-undo-1, 132px]
2121
but undo
2222
```
2323

content/docs/cli-guides/cli-tutorial/rubbing.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ but status
4242

4343
If we want to update the first commit (`da42d06`) with the `README-es.md` changes and the last commit (`fdbd753`) with the `app/views/bookmarks/index.html.erb` changes, we can run the following two `rub` commands:
4444

45-
```cli [rubbing-but-rub-1, 110px]
45+
```cli [rubbing-but-rub-1, 88px]
4646
but rub h0 da42d06
4747
```
4848

49-
```cli [rubbing-but-rub-2, 110px]
49+
```cli [rubbing-but-rub-2, 88px]
5050
but rub app/views/bookmarks/index.html.erb fdbd753
5151
```
5252

@@ -72,7 +72,7 @@ but status
7272

7373
We can absorb the top commit into the bottom one by running `but rub <commit-squash> <commit-target>`:
7474

75-
```cli [rubbing-but-rub-3, 110px]
75+
```cli [rubbing-but-rub-3, 88px]
7676
but rub 0f 08
7777
```
7878

@@ -98,7 +98,7 @@ but status
9898

9999
And we want to un-commit the first commit (`0fa2965`) as though we had never made it, you can rub to `zz`:
100100

101-
```cli [rubbing-but-rub-4, 110px]
101+
```cli [rubbing-but-rub-4, 88px]
102102
but rub 0f zz
103103
```
104104

@@ -122,7 +122,7 @@ but status
122122

123123
We can move the “second commit” commit to the `move-second-commit` branch with `but rub`:
124124

125-
```cli [rubbing-but-rub-5, 110px]
125+
```cli [rubbing-but-rub-5, 88px]
126126
but rub 0f mo
127127
```
128128

@@ -186,7 +186,7 @@ but commit empty --after 6a
186186

187187
Now we have a blank commit:
188188

189-
```cli [rubbing-but-status-13, 440px]
189+
```cli [rubbing-but-status-13, 462px]
190190
but status -f
191191
```
192192

content/docs/cli-guides/cli-tutorial/scripting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ description: How to script with GitButler CLI
77

88
All of the commands are designed to be very user friendly when we have an interactive terminal, but you can also very easily script everything by passing the `--json` or `-j` option to anything. For example, here is using `but show` on a commit.
99

10-
```cli [scripting-but-show-1, 330px]
10+
```cli [scripting-but-show-1, 308px]
1111
but show 2672465
1212
```
1313

content/docs/cli-guides/cli-tutorial/updating-the-base.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ When GitButler is first initialized in a project, you are asked to choose a bran
1515

1616
You can always check your target branch setting with `but config`:
1717

18-
```cli [updating-the-base-but-config-1, 506px]
18+
```cli [updating-the-base-but-config-1, 572px]
1919
but config
2020
```
2121

2222
Or get more information with `but config target`:
2323

24-
```cli [updating-the-base-but-config-2, 330px]
24+
```cli [updating-the-base-but-config-2, 308px]
2525
but config target
2626
```
2727

@@ -70,7 +70,7 @@ Technically, there could be more reachable commits, but we only show the first p
7070

7171
Now let's say that we would like to pull in the upstream work and rebase our branches on top of the new upstream to update them. We can check what all would happen with `but pull --check`.
7272

73-
```cli [updating-the-base-but-pull-1, 330px]
73+
```cli [updating-the-base-but-pull-1, 308px]
7474
but pull --check
7575
```
7676

@@ -92,7 +92,7 @@ When you feel like you want to get your active branches up to date, you can run
9292

9393
Let's run it in our example.
9494

95-
```cli [updating-the-base-but-pull-2, 418px]
95+
```cli [updating-the-base-but-pull-2, 396px]
9696
but pull
9797
```
9898

0 commit comments

Comments
 (0)