Does Git Branch creates NEW files?
I have a folder with a Linked List implementation that right now caters
only to integers. I have tested it, and it works perfect. Now next
morning, my boss comes up, and tells me that I need to update my
implementation so that it can now work with any datatype.
Now before I proceed to edit my code, I create a new git branch called
_test_templates, switch to this new branch with git checkout, and start
experimenting. After sometime, I realize my code is not working and I
think I will start again from scratch. I switch back to Master, and delete
my _test_templates branch.
But here is what confuses me: The changes I had made to my Node.h,
Node.cpp, LinkedList.h, LinkedList.cpp, and main.cpp within my
_templates_test branch are present in master branch too.
Why? Wasn't I working in a totally new temporary space called a branch
independent of master?
No comments:
Post a Comment