Skip to content

Commit

Permalink
removed echoing to refs
Browse files Browse the repository at this point in the history
  • Loading branch information
schacon committed Sep 5, 2008
1 parent fef851a commit e194f2d
Showing 1 changed file with 1 addition and 6 deletions.
Expand Up @@ -118,12 +118,7 @@ will be returned via STDOUT.
Now that we have a new commit object SHA, we can update a branch to point to
it if we want to. Lets say we want to update our 'master' branch to point to
the new commit we just created - we would use the linkgit:git-update-ref[1]
command. Technically, you can just do something like this:

$ echo 'a5f85ba5875917319471dfd98dfc636c1dc65650' > .git/refs/heads/master

But a safer way of doing that is to use the update-ref command:
command:

$ git update-ref refs/heads/master a5f85ba5875917319471dfd98dfc636c1dc65650


0 comments on commit e194f2d

Please sign in to comment.