You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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`
Copy file name to clipboardExpand all lines: content/docs/cli-guides/cli-tutorial/conflict-resolution.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ but status
29
29
30
30
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).
Copy file name to clipboardExpand all lines: content/docs/cli-guides/cli-tutorial/editing-commits.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ Pretty simple.
42
42
43
43
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:
Copy file name to clipboardExpand all lines: content/docs/cli-guides/cli-tutorial/inspecting.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ This output is actually _better_ than the default Git output for this, because I
57
57
58
58
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:
59
59
60
-
```cli [inspecting-but-branch-1, 660px]
60
+
```cli [inspecting-but-branch-1, 638px]
61
61
but branch
62
62
```
63
63
@@ -77,7 +77,7 @@ The point of this listing is to help you easily see what work you have available
77
77
78
78
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:
Copy file name to clipboardExpand all lines: content/docs/cli-guides/cli-tutorial/rubbing.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,11 +42,11 @@ but status
42
42
43
43
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:
44
44
45
-
```cli [rubbing-but-rub-1, 110px]
45
+
```cli [rubbing-but-rub-1, 88px]
46
46
but rub h0 da42d06
47
47
```
48
48
49
-
```cli [rubbing-but-rub-2, 110px]
49
+
```cli [rubbing-but-rub-2, 88px]
50
50
but rub app/views/bookmarks/index.html.erb fdbd753
51
51
```
52
52
@@ -72,7 +72,7 @@ but status
72
72
73
73
We can absorb the top commit into the bottom one by running `but rub <commit-squash> <commit-target>`:
74
74
75
-
```cli [rubbing-but-rub-3, 110px]
75
+
```cli [rubbing-but-rub-3, 88px]
76
76
but rub 0f 08
77
77
```
78
78
@@ -98,7 +98,7 @@ but status
98
98
99
99
And we want to un-commit the first commit (`0fa2965`) as though we had never made it, you can rub to `zz`:
100
100
101
-
```cli [rubbing-but-rub-4, 110px]
101
+
```cli [rubbing-but-rub-4, 88px]
102
102
but rub 0f zz
103
103
```
104
104
@@ -122,7 +122,7 @@ but status
122
122
123
123
We can move the “second commit” commit to the `move-second-commit` branch with `but rub`:
Copy file name to clipboardExpand all lines: content/docs/cli-guides/cli-tutorial/scripting.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ description: How to script with GitButler CLI
7
7
8
8
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.
Copy file name to clipboardExpand all lines: content/docs/cli-guides/cli-tutorial/updating-the-base.mdx
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,13 @@ When GitButler is first initialized in a project, you are asked to choose a bran
15
15
16
16
You can always check your target branch setting with `but config`:
17
17
18
-
```cli [updating-the-base-but-config-1, 506px]
18
+
```cli [updating-the-base-but-config-1, 572px]
19
19
but config
20
20
```
21
21
22
22
Or get more information with `but config target`:
23
23
24
-
```cli [updating-the-base-but-config-2, 330px]
24
+
```cli [updating-the-base-but-config-2, 308px]
25
25
but config target
26
26
```
27
27
@@ -70,7 +70,7 @@ Technically, there could be more reachable commits, but we only show the first p
70
70
71
71
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`.
72
72
73
-
```cli [updating-the-base-but-pull-1, 330px]
73
+
```cli [updating-the-base-but-pull-1, 308px]
74
74
but pull --check
75
75
```
76
76
@@ -92,7 +92,7 @@ When you feel like you want to get your active branches up to date, you can run
0 commit comments