使用 git COLA 恢复以前的项目版本 [英] recover previous version of project using git COLA

查看:49
本文介绍了使用 git COLA 恢复以前的项目版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用 GIT COLA GUI 提交后如何获取项目的先前版本.

how to get the previous version of project once it is committed using GIT COLA GUI.

我在项目中有一个 C++ 文件.我在 2 月 13 日创建了该文件.我在 2 月 14 日对该文件进行了更改并保存了它.现在我想回到 2 月 13 日保存的版本.那么如何使用 GIT COLA 做到这一点.该项目位于 GIT 存储库中.

I have a C++ file in the project. i created that file on 13th feb. i made changes to that file on 14th feb and saved it. now i want to get back to version dat was saved on 13th feb. so how to do this using GIT COLA. this project is in GIT repository.

推荐答案

使用视图 > DAG..."窗口显示整个项目中的所有提交.该窗口称为DAG"窗口.您还可以通过运行git dag"或git cola dag"来独立启动 DAG.

Use the "View > DAG..." window to display all of the commits in the entire project. This window is referred to as the "DAG" window. You can also launch the DAG standalone by running "git dag" or "git cola dag".

在 DAG 窗口中,您可以右键单击任何提交并将您的分支和/或工作树重置"到任何先前的提交.

From the DAG window you can right-click on any commit and "Reset" either your branch and/or worktree to any previous commit.

您还可以使用抓取文件..."上下文菜单操作从任何提交中抓取任何文件的旧版本.

You can also use the "Grab File..." context menu action to grab an older version of any file, from any commit.

这篇关于使用 git COLA 恢复以前的项目版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆