私はgitが初めてです。
に機能を実装しましたA way
。
で同じ機能を実装してみたいと思いB way
ます。
B way
それから、それが良いアイデアであったかどうかを評価するのに、おそらく時間がかかるでしょう。
評価しながら、プログラムを修正しますother parts
。
Suppose, I decide B was bad and A was better
, and wanted to come back to A way
.
But I'd like to keep the modification to the other parts
of the program.
Can this be done in git?
-EDIT-
I'm adding pics to better explain what I'm trying to accomplish
Currently, I'm at the end of a_way(finished implementing A), except I don't know where X is..
[a_way]
o---X---a---a---a
I wanna try b_way.
Start from where I am, remove(or comment out) code related to a_way, and implement b_way
o---X---a---a---a
\
remove a_way--implement b_way
I'll need some time to evaluate the effectiveness of b_way, and will keep developing other features.
o---X---a---a---a
\
remove a_way--implement b_way--develop new features
Now I figure a_way was better than b_way and decide to go back to a_way.
o---X---a---a---a--------------------------------new features(I wanna end up here)
\
remove a_way--implement b_way--new features