Curious programmer sharing byte-sized knowledge on dev.to. Passionate about Git, GCP, TypeScript, Next.js, and DevTools. Enjoys collaborating with others and leading by example.
Location
Mauritius
Education
Computer Training Institute & Le Wagon
Pronouns
she/her
Work
Director & Software Engineering Team Lead at Cloudsure Limited
Thanks! Actually, the -- should be removed and the filename is the actual name of the file that you want to be follow. So an example would be
git log --follow package.json
If the filename cannot be followed, Git will present you with a fatal: ambiguous argument 'package2.json': unknown revision or path not in the working tree error.
I am going to update the snippet. Let me know if you pick up any funnies with what I just posted.
No space beetwen
--
andfilename
Thanks! Actually, the
--
should be removed and thefilename
is the actual name of the file that you want to be follow. So an example would beIf the filename cannot be followed, Git will present you with a
fatal: ambiguous argument 'package2.json': unknown revision or path not in the working tree
error.I am going to update the snippet. Let me know if you pick up any funnies with what I just posted.
Guess little tease is fine........
package2.json
orpackage.json
?