Skip to content
Merged
Show file tree
Hide file tree
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
7 changes: 6 additions & 1 deletion book/05-distributed-git/sections/contributing.asc
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,12 @@ To jessica@githost:simplegit.git
1edee6b..fbff5bc master -> master
----

John tries to push his change up, too:
The last line of the output above shows a useful return message from the push operation.
The basic format is `<oldref>..<newref> fromref \-> toref`, where `oldref` means the old reference, `newref` means the new reference, `fromref` is the name of the local reference being pushed, and `toref` is the name of the remote reference being updated.
You'll see similar output like this below in the discussions, so having a basic idea of the meaning will help in understanding the various states of the repositories.
More details are available in the documentation for https://git-scm.com/docs/git-push[git-push].

Continuing with the example, John tries to push his change up, too:

[source,console]
----
Expand Down
3 changes: 1 addition & 2 deletions book/10-git-internals/sections/objects.asc
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,8 @@ You'll now create a new tree with the second version of `test.txt` and a new fil
[source,console]
----
$ echo 'new file' > new.txt
$ git update-index --cacheinfo 100644 \
$ git update-index --add --cacheinfo 100644 \
1f7a7a472abf3dd9643fd615f6da379c4acb3e3a test.txt
$ git update-index test.txt
$ git update-index --add new.txt
----

Expand Down