:
, , , , . , reflog, .
. , . , , , .
:
origin/master, master dev
:
. , .bashrc. , , , .
1) , :
git add
git commit
<command for running code>
SHA1 , (). , , git log --patch, .
, . .
2) :
git checkout master
git merge
git commit -m "<commit message for dev history>"
SHA1 .
dev git branch -f dev, , .
This accomplishes your task of handling many commits that will not be popped onto your remote and can be removed by garbage collection (after you are done with them). Each individual SHA1 message can be annotated to the results of your experiment, allowing you to keep track of what changes have affected the results for each moment your code runs. It also allows you to manage versions (locally) of your changes.
source
share