From 5365e752679822b51a7f1a909df8e2985f77c74f Mon Sep 17 00:00:00 2001 From: Dylan Irlbeck Date: Wed, 29 Apr 2020 22:17:44 -0500 Subject: [PATCH] Update git show TIL --- git/viewing-a-file-on-another-branch.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/git/viewing-a-file-on-another-branch.md b/git/viewing-a-file-on-another-branch.md index aef7533f..e09c7884 100644 --- a/git/viewing-a-file-on-another-branch.md +++ b/git/viewing-a-file-on-another-branch.md @@ -2,16 +2,16 @@ Sometimes you want to view a file on another branch (without switching branches). That is, you want to view the version of that file as it exists -on that branch. `git show` can help. If your branch is named `my_feature` and +on that branch. `git show` can help. If the other branch is named `some_branch` and the file you want to see is `app/models/users.rb`, then your command should look like this: ``` -$ git show my_feature:app/models/users.rb +$ git show some_branch:app/models/users.rb ``` You can even tab-complete the filename as you type it out. See `man git-show` for more details. -[source](http://stackoverflow.com/questions/7856416/view-a-file-in-a-different-git-branch-without-changing-branches) +[source](https://stackoverflow.com/questions/7856416/view-a-file-in-a-different-git-branch-without-changing-branches)