我们应该所有人都用过git管理我们的代码,如果有一天,你想回退看之前的代码而不影响当前正在开发的代码,下面我们介绍一个小方法。
首先打开:Git Bash Here
进入到我们需要回退的代码中,然后使用命令:git log
这是我们可以看到所有修改历史,在每一条记录中都会有commit,我们记下要回退历史的commit
1,使用: git checkout XXXXXX ( 切换到指定的版本号 ,取前七位)
2, 使用:git checkout -b branch ( 新建分支 )
这个时候,代码就是你需要的版本了!
Warning: Use of undefined constant ‘标签:’ - assumed '‘标签:’' (this will throw an Error in a future version of PHP) in
/home/wwwroot/maotouyingcc.com/wp-content/themes/dux/single.php on line
53
Warning: Use of undefined constant ” - assumed '”' (this will throw an Error in a future version of PHP) in
/home/wwwroot/maotouyingcc.com/wp-content/themes/dux/single.php on line
53
Warning: Use of undefined constant ” - assumed '”' (this will throw an Error in a future version of PHP) in
/home/wwwroot/maotouyingcc.com/wp-content/themes/dux/single.php on line
53
‘标签:’
技术文章”
最新评论
收藏了,以后可能会用到
你们创作的校园二手交易平台和之前的有什么区别有什么区别
论文要求springMVc,这个可以用吗
公众号关注不了,微信二维码太小扫不到
兄弟想要系统可以发给我吗
代码讲解视频有吗
奈斯
这个有论文文档吗