【发布时间】:2019-07-30 10:18:33
【问题描述】:
我是新来的,所以我会尽力做到最好。
我的 git 分支遇到了一些问题。
确实,我正在开发一个名为“myName”的分支。我正在开发一项需要很长时间才能开发的新功能。这就是为什么我经常做'git rebase master'。但是,我在进行变基之前推送了我的提交。
所以我的分支和远程分支已经分道扬镳了。我拉动更改,然后继续开发。 2 到 3 次后,我意识到这有点破坏了我的 git 历史。所以我想知道如何清理我的历史记录,或者在一个新的分支上获取这个分支的代码,这将是一个新的开始,而不保留这个糟糕的历史记录。
这是我的历史预览:
1af3418 (HEAD -> dashboards) Add of the mapChart & new start
a18d6b9 Add of the mapChart with real Data
cd29620 Adaptation of the LineChart component and the Dashboards page after setting the backend
71d288e Add of LineCharts Components and display of 1st LineChart component with Fake Data
ca33ac3 WA-446 Check undefined oauth
d4124bb Add of the PieChart Component 1st charts on Dashboards page
83db3e8 Test of rebase command
f474a41 Test of rebase command
3c3d0a4 Fix undefined ClipLoader
1297024 Update react to 16.8.3
ad83624 Test of rebase command
8f145a3 Test of rebase command
ec363bf Test to add dahsboard page
bc71ead Fix undefined ClipLoader
40cc4ff Update react to 16.8.3
如果您需要更多信息,请告诉我,感谢您的帮助。
【问题讨论】: