-
Sometimes I make a local copy of a source file, work on the original and then look at both files. E.g say, I have a file The intermediate file So I have to untrack it, right? But it feels tedious to be forced to untrack a brief intermediate file... What do people do?:
Thanks for pointers! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
I use my editor's ability to show a diff between two commits. Set it to compare HEAD & the starting commit, and there's no need to make the |
Beta Was this translation helpful? Give feedback.
-
I would edit the file and then use That said:
Sort of. It'll end up in your local repo, but when you end up moving it back to |
Beta Was this translation helpful? Give feedback.
I personally make a
tmp/
directory in the root of my project and add it to.gitignore
- then any files placed there are treated as "scratch" and are untracked.