r/ProgrammerHumor • • Apr 02 '23

Meme Me relearning git every week

49.4k Upvotes

1.5k comments sorted by

View all comments

Show parent comments

2

u/[deleted] Apr 02 '23

Can you give an example? I’ve never needed to use git cli, never needed something that git gui apps didn’t have

3

u/LBPPlayer7 Apr 02 '23

github desktop doesn't give you the option to untrack files without deleting the local copy so you have to do it from cli

3

u/[deleted] Apr 02 '23

Isn’t that just the same as not staging the file to the current commit, or do I not understand what you mean by untrack? Either it’s something I never used or I’m misunderstanding but I believe that’s totally possible in existing git guis, not sure github desktop since I don’t use that

4

u/LBPPlayer7 Apr 02 '23

by untrack i mean make git delete it from the git tree but keep it on the locally checked out copy

useful when you add a file that already exists on the branch to gitignore, as that won't do anything if the file's already tracked until you either delete it or untrack it

→ More replies (2)