This is kind of a hard question to explain, mainly because I still don't know a whole bunch about git.
I just know the basics to be able to get by.
Currently I've been working on a bigger project and have changed a bunch of lines in a specific file. The update that I'm working on is still a ways away from being committed and pushed to git.
Lone behold there ended up being a smaller update that I had to make within that same file and now need to push that code instead of the semi working file currently.
Is there any way that I could stash certain lines of that file so that the bigger changes I made to that file don't get lost when I decide to push the smaller changes?
Or do I have to stash what I currently have now, and then go back into the file and remake the smaller changes again and push that?
Sorry if this is hard to understand, it's kind of difficult to explain, plus I don't know if there is a way of currently doing this with git anyways.
EDIT
I'm looking into using separate branches just like the second answer suggests. This seems like a more efficient solution, and will allow me to keep track of my fixes.