To Use EGit(Git for Eclipse)

摘要:
首选项)下的“常规”>α-β或α-β-β-α;dirty(文件夹)-至少有一个文件低于文件夹dirty;
 

Label Decorations

Menu Actions

 User Guide

http://wiki.eclipse.org/EGit/User_Guide


Label Decorations

Label decorations show Git specific information on resources under Git version control. They appear in all views showing model objects, like Package Explorer, Project Explorer, Navigator, Hierarchy View.

The Git label decorations can be switched on globally in the Preference Menu (Window > Preferences) under General > Appearance > Label Decorations.

More detailed settings can be done in the Preferences under Team > Git > Label Decorations.

There are two different types of label decorations: text decorations and icon decorations.

Text Decorations

Text decorations appear on the left or right side of the text label. They can be configured on the Preferences dialog under Team > Git > Label Decorations on the tab Text Decorations. For example, the default for a dirty resource is a > on the left side of its name.

These are the default settings:

Image:01-TextDecorations.png

For files and folders there are the variables "name""dirty" and "staged""Dirty" and "staged" are flags; if they are true, the text after the colon is displayed.

For projects there are the additional variables "repository" and "branch". The "repository" variable displays the name of the repository.

The "branch" variable displays the name of the currently checked out branch. If no branch is checked out, the decoration shows the shortened name of the commit (first seven characters followed by ellipsis). If tags and/or remote branches are pointing to this commit, a "best guess" heuristic is applied to also show this information: tags take precedence over remote branches, if several tags apply, the newest one is displayed; if there are several remote branches or tags have no modification date, then alphabetic sorting is applied and the last one is shown. Example: the checked out commit e49f576... refers to tag v.0.7.1 of repositoryegit:

Image:03-ExampleDecoration.png

Icon Decorations

Icon decorations appear on the lower right corner of the icon displayed in front of the label. They can be configured on the Preferences dialog under Team > Git > Label Decorations on the tab Icon Decorations.

These are the default decorations:

Image:02-IconDecorations.png

  • dirty (folder) - At least one file below the folder is dirty; that means that it has changes in the working tree that are neither in the index nor in the repository.
  • tracked - The resource is known to the Git repository and hence under version control.
  • untracked - The resource is not known to the Git repository and will not be version controlled until it is explicitly added.
  • ignored - The resource is ignored by the Git team provider. The preference settings under Team > Ignored Resources, "derived" flag and settings from.gitignore files are taken into account.
  • dirty - The resource has changes in the working tree that are neither in the index nor in the repository.
  • staged - The resource has changes which have been added to the index. Note that adding changes to the index is currently possible only in the commit dialog via the context menu of a resource.
  • partially-staged - The resource has changes which are added to the index and additional changes in the working tree that neither reached the index nor have been committed to the repository.
  • added - The resource has not yet reached any commit in the repository but has been freshly added to the Git repository in order to be tracked in future.
  • removed - The resource is staged for removal from the Git repository.
  • conflict - A merge conflict exists for the file.
  • assume-valid - The resource has the "assume unchanged" flag. This means that Git stops checking the working tree files for possible modifications, so you need to manually unset the bit to tell Git when you change the working tree file. Also see Assume unchanged action.

Menu Actions

  • Add
    • Add changes present in the working tree to the git index, also known as staging changes.
    • Put newly created resources under git version control (Git does not automatically start tracking resources).
    • Resolve conflicts.
  • Apply Patch - Apply a patch.
  • Assume unchanged - Resources can be flagged "assume unchanged". This means that Git stops checking the working tree files for possible modifications, so you need to manually unset the bit to tell Git when you change the working tree file. This setting can be switched on with the menu action Team > Assume unchanged and switched back with the menu action Team > No Assume unchanged.
  • BranchCreate Branch - Checkout a branch or create a branch.
  • Change Credentials - Change logon credentials of a Fetch or Push Specification, credentials are stored per URL in the Eclipse Secure Store.
  • Checkout - Checkout a Branch, TagCommit or Reference.
  • Cherry-pick - Cherry-pick a single commit onto the tip of the currently checked out branch.
  • Clear Credentials - Clear logon credentials of a Fetch or Push Specification, credentials are stored per URL in the Eclipse Secure Store.
  • Commit - Commit changes.
  • Delete Fetch - Delete a Fetch Specification.
  • Delete Push - Delete a Push Specification.
  • Configure Fetch - Configure a Fetch Specification.
  • Configure Push - Configure a Push Specification.
  • Delete Branch - Delete a branch.
  • Delete Repository - Delete a repository.
  • Disconnect - Disconnect the attached Git Team Provider from this project. The git repository still exists but is no longer integrated with Eclipse.
  • Ignore - Add files to .gitignore so that git ignores them.
  • Import Projects - Import projects into the Eclipse workbench.
  • Merge - Merge branches.
  • Merge Tool - Resolve conflicts using the Merge Tool.
  • Open Properties View - View and edit the repository configuration.
  • Pull - Pull changes from remote branch tracked by currently checked out local branch.
  • Remote > Fetch From - Fetch changes from a remote repository
  • Remote > Fetch from Gerrit - Fetch changed from a Gerrit Code Review Server
  • Remote > Push - Push changes to other repositories
  • Remote > Configure Fetch from Upstream - Configure Upstream for automated fetch
  • Remote > Configure Push to Upstream - Configure upstream for automated push
  • Rebase - Rebase a branch onto another one.
  • Remove Repository - Remove a repository from the Repositories View.
  • Rename Branch - Rename a branch.
  • Reset - Reset the current HEAD, Index or Working Tree.
  • Show in History - Show the selected resource in the History View.
  • Show in Repositories View - Show the selected resource in the Repositories View.
  • Switch to... - Switch to (also known as checkout) another branch or tag.
  • Synchronize - Synchronize local and remote branches with each other.
  • Tag - Create, delete tags.
  • Untrack - Remove resources from git version control. If you want to delete the resource from the working tree click also Delete in the resource's context menu.

免责声明:文章转载自《To Use EGit(Git for Eclipse)》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇iReport 中使用 Chart 图第18章 启动下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

JNI数据类型(转)

  本文原创,转载请注明出处:http://blog.csdn.net/qinjuning     在Java存在两种数据类型: 基本类型 和 引用类型 ,大家都懂的 。     在JNI的世界里也存在类似的数据类型,与Java比较起来,其范围更具严格性,如下:         1、primitive types ----基本数据类型,如:int、 flo...

1/28 对于Vue.js 中 Object.freeze( )的理解

开门见山先总结,如有错误,大佬请指正 1. const  用于单一的变量上,对于对象的属性,const 不能做到 阻止 添加、修改 对象属性 2. freeze 只要是 对象 都可以 阻止 其发生改变 ( 弥补了 const 的不足,即 不能阻止 添加 修改属性) 3. Vue 是响应式的,所以对于 data 是无法 freeze 的   ( /* 上面的...

wpf:样式(转)

http://www.cnblogs.com/shuang121/archive/2013/01/14/2860455.html 前面简单的说到了wpf中几种样式的用法,wpf有着类似web中的CSS一样,为界面上的元素定制外观,以提供更好的用户界面,这种灵活性也是winForm所不能及的,从前面讲到的可以知道在WPF应用程序中,通过控件的属性,我们也可以...

Android color颜色-色号总结

code时经常会用到颜色,然而对于像我这样的对于颜色不是很敏感的同学来说,就很痛苦了。 我想要某种颜色,但是又说不出来具体是哪种;这边总结了一下color种类以及色号。 <?xml version="1.0" encoding="utf-8"?> <resources> <color name="white"...

SpringCloud 之 Netflix Hystrix 服务监控

本文较大篇幅引用https://www.mrhelloworld.com/hystrix-dashboard-turbine/,相关内容版权归该文章作者所有 引用上篇文章的工程数据   Actuator Hystrix 除了可以实现服务容错之外,还提供了近乎实时的监控功能,将服务执行结果和运行指标,请求数量成功数量等等这些状态通过 Actuator 进行收...

asp.net core 集成JWT(二)token的强制失效,基于策略模式细化api权限

【前言】   上一篇我们介绍了什么是JWT,以及如何在asp.net core api项目中集成JWT权限认证。传送门:https://www.cnblogs.com/7tiny/p/11012035.html   很多博友在留言中提出了疑问: 如何结合jwt认证对用户进行API授权? token过期了怎么办? 如何自动刷新token? 如何强制toke...