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
@@ -277,7 +277,7 @@ HEAD is now at 99ada87... Merge pull request #89 from schacon/appendix-final
277
277
278
278
$ git checkout 2.0-beta-0.1
279
279
Previous HEAD position was 99ada87... Merge pull request #89 from schacon/appendix-final
280
-
HEAD is now at df3f601... add atlas.json and cover image
280
+
HEAD is now at df3f601... Add atlas.json and cover image
281
281
----
282
282
283
283
In ``detached HEAD'' state, if you make changes and then create a commit, the tag will stay the same, but your new commit won't belong to any branch and will be unreachable, except by the exact commit hash.
By default, with no arguments, `git log` lists the commits made in that repository in reverse chronological order; that is, the most recent commits show up first.
Copy file name to clipboardExpand all lines: book/03-git-branching/sections/branch-management.asc
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,9 @@ To see the last commit on each branch, you can run `git branch -v`:
22
22
[source,console]
23
23
----
24
24
$ git branch -v
25
-
iss53 93b412c fix javascript issue
25
+
iss53 93b412c Fix javascript issue
26
26
* master 7a98805 Merge branch 'iss53'
27
-
testing 782fd34 add scott to the author list in the readmes
27
+
testing 782fd34 Add scott to the author list in the readme
28
28
----
29
29
30
30
The useful `--merged` and `--no-merged` options can filter this list to branches that you have or have not yet merged into the branch you're currently on.
Copy file name to clipboardExpand all lines: book/03-git-branching/sections/nutshell.asc
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Staging the files computes a checksum for each one (the SHA-1 hash we mentioned
14
14
[source,console]
15
15
----
16
16
$ git add README test.rb LICENSE
17
-
$ git commit -m 'The initial commit of my project'
17
+
$ git commit -m 'Initial commit'
18
18
----
19
19
20
20
When you create the commit by running `git commit`, Git checksums each subdirectory (in this case, just the root project directory) and stores them as a tree object in the Git repository.
@@ -80,9 +80,9 @@ This option is called `--decorate`.
80
80
[source,console]
81
81
----
82
82
$ git log --oneline --decorate
83
-
f30ab (HEAD -> master, testing) add feature #32 - ability to add new formats to the central interface
84
-
34ac2 Fixed bug #1328 - stack overflow under certain conditions
85
-
98ca9 The initial commit of my project
83
+
f30ab (HEAD -> master, testing) Add feature #32 - ability to add new formats to the central interface
84
+
34ac2 Fix bug #1328 - stack overflow under certain conditions
85
+
98ca9 Initial commit
86
86
----
87
87
88
88
You can see the `master` and `testing` branches that are right there next to the `f30ab` commit.
@@ -175,11 +175,11 @@ If you run `git log --oneline --decorate --graph --all` it will print out the hi
175
175
[source,console]
176
176
----
177
177
$ git log --oneline --decorate --graph --all
178
-
* c2b9e (HEAD, master) made other changes
179
-
| * 87ab2 (testing) made a change
178
+
* c2b9e (HEAD, master) Made other changes
179
+
| * 87ab2 (testing) Made a change
180
180
|/
181
-
* f30ab add feature #32 - ability to add new formats to the
182
-
* 34ac2 fixed bug #1328 - stack overflow under certain conditions
181
+
* f30ab Add feature #32 - ability to add new formats to the central interface
182
+
* 34ac2 Fix bug #1328 - stack overflow under certain conditions
* serverfix f8674d9 [teamone/server-fix-good: ahead 3, behind 1] This should do it
194
+
testing 5ea463a Try something new
195
195
----
196
196
197
197
So here we can see that our `iss53` branch is tracking `origin/iss53` and is ``ahead'' by two, meaning that we have two commits locally that are not pushed to the server.
0 commit comments