Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions book/07-git-tools/sections/subtree-merges.asc
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Receiving objects: 100% (3184/3184), 677.42 KiB | 4 KiB/s, done.
Resolving deltas: 100% (1952/1952), done.
From https://github.com/rack/rack
* [new branch] build -> rack_remote/build
* [new branch] master -> rack_remote/master
* [new branch] main -> rack_remote/main
* [new branch] rack-0.4 -> rack_remote/rack-0.4
* [new branch] rack-0.9 -> rack_remote/rack-0.9
$ git checkout -b rack_branch rack_remote/master
Branch rack_branch set up to track remote branch refs/remotes/rack_remote/master.
$ git checkout -b rack_branch rack_remote/main
Branch rack_branch set up to track remote branch refs/remotes/rack_remote/main.
Switched to a new branch "rack_branch"
----

Expand Down Expand Up @@ -95,9 +95,9 @@ Instead, you must run `git diff-tree` with the branch you want to compare to:
$ git diff-tree -p rack_branch
----

Or, to compare what is in your `rack` subdirectory with what the `master` branch on the server was the last time you fetched, you can run:
Or, to compare what is in your `rack` subdirectory with what the `main` branch on the server was the last time you fetched, you can run:

[source,console]
----
$ git diff-tree -p rack_remote/master
$ git diff-tree -p rack_remote/main
----