git - echo into grafts does not work -


i have big repository more 300,000 commits. wanna work recent commits. so, used following command:

echo "" > .git/info/grafts

but not work, since after ran git log, again returned commits. new-root-sha1 passed on master branch.

if you're planning on leaving main repository alone , limiting local clone few commits, use following command last 12 commits:

git clone [location] --depth 12


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -