I'm working on my team's codebase and taking notes within it to clarify what I don't understand. Obviously I don't want the notes to show up when I make a pull request. Is there a way to type out notes so that it doesn't happen, besides creating a copy of the codebase for note taking purposes? Maybe there's a CocoaPod out there that can do this?
Asked
Active
Viewed 155 times
1
-
But adding a cocoapod into Podfile, Podfile.lock will still be exposed to git commit. You could write a small script, which will delete all your comments from all .swift files. And you would run it before commiting. Like if line starts with //CLARIFY: -> then delete the line. And when you commit it, return it back – Vitalii Shvetsov Sep 23 '20 at 18:18
-
Does this answer your question? [Commit only part of a file in Git](https://stackoverflow.com/questions/1085162/commit-only-part-of-a-file-in-git) – pkamb Sep 23 '20 at 18:33
-
The simplest, safest and least time consuming solution is probably to take notes on the side, saving them in a text file outside of the project folder – Joakim Danielson Sep 23 '20 at 19:22