Už stacilo

Dňa pi 6. 8. 2021, 16:05 Magnus Therning <mag...@therning.org> napísal(a):

>
> "sharan....@gmail.com" <sharan.basa...@gmail.com> writes:
>
> > Thanks, Magnus. I have pulled (git pull) before executing the
> > command I showed.
> >
> > On your suggestion (git diff origin/master -- README)
> >
> > Do I need to specify the path to README or I need to be in the
> > directory where README?
>
> Yes, in general you do need to be in your git workspace and
> specify the relative path to the file you are interested in.
>
> For instance, the project I tried it out in looks like this:
>
>     ❯ tree
>     .
>     ├── dev
>     │   └── user.clj
>     ├── docs
>     │   └── development.org
>     ├── project.clj
>     ├── README.org
>     └── src
>         └── foo
>             ├── core.clj
>             └── utils.clj
>
> the file that contained changes wasn't README.org, but utils.clj,
> so I ran
>
>     ❯ git diff origin/main -- src/foo/utils.clj
>
> in order to see the differences.
>
> /M
>
> --
> Magnus Therning                   OpenPGP: 0x927912051716CE39
> email: mag...@therning.org
> @magthe@mastodon.technology       http://magnus.therning.org/
>
> Every act of creation is first an act of destruction.
>      — Pablo Picasso
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/git-users/87r1f6zn1z.fsf%40therning.org.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/git-users/CA%2BLfKm5czRyzUwX0UhvT%2BV%2BSON8ZY7i3oVgNuQifpH6Yof%2BLsg%40mail.gmail.com.

Reply via email to