Skip to content

Commit e194f2d

Browse files
committed
removed echoing to refs
1 parent fef851a commit e194f2d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

text/53_Raw_Git_readtree_writetree_committree/0_ Raw_Git_readtree_writetree_committree.markdown

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,7 @@ will be returned via STDOUT.
118118
Now that we have a new commit object SHA, we can update a branch to point to
119119
it if we want to. Lets say we want to update our 'master' branch to point to
120120
the new commit we just created - we would use the linkgit:git-update-ref[1]
121-
command. Technically, you can just do something like this:
122-
123-
$ echo 'a5f85ba5875917319471dfd98dfc636c1dc65650' > .git/refs/heads/master
124-
125-
But a safer way of doing that is to use the update-ref command:
121+
command:
126122

127123
$ git update-ref refs/heads/master a5f85ba5875917319471dfd98dfc636c1dc65650
128124

129-

0 commit comments

Comments
 (0)