sourcetree帮助文档
- Overview
SourceTree可以在bookmarks界面跟踪所有的git和mercurial项目。可以概览工程中是否有需要提交的文件等。添加新的bookmark很简单,可以通过两种方式,通过本地的file sysytem或者clone url或者是创建新的
仓库。
本地:就是在本地已经有了git项目,然后直接导入即可。可以找到需要的本地项目然后直接拖曳或者选择“add working copy”绝对路径搜索添加都可以找到.
clone url: 就是获取有效的git项目url后选择“clone repository”来下载工程到本地。
- The Toolbar
The repository window has a slightly different toolbar depending on whether you're looking at a Mercurial or Git repository:
The View Button
This button allows you to switch between the 3 main views of the repository: File Status, Log, and Search.
Commit
Opens the Commit dialog so you can commit your changes. In Git, if you're using staging, the default is to open the dialog with the commit of staged changes selected. In Mercurial, or Git with the staging view disabled, the dialog opens with either all pending files selected (if 0 or 1 file is selected in the File Status view, or you're on another view), or with specific files selected (if 2+ files are selected in the file status view).
提交代码改动。
You can also commit specific files by using the context menu version of Commit from the File Status View, or by customising your toolbar to add the 'Commit Selected' button.
Update (Mercurial) / Checkout (Git)
Allows you to switch your local working copy to a different point in history. In Git, this will also move your HEAD (equivalent to git reset followed by git checkout).
checkout会切换不同的本地working copy
Revert (Mercurial) / Reset (Git)
Use this to undo changes in your working copy.
将在本地当前working copy代码的修改还原
Shelve (Mercurial) / Stash (Git)
Moves any uncommitted changes you have in your working copy to a storage area, and returns your working copy to a clean state. A entry representing your stashed/shelved changes will appear on the sidebar once complete and you can bring these changes back into your working copy later from the sidebar context menu.
Add (或者选择修改的文件然后右键单击选择 add to index)
Adds any selected untracked files to source control - the next commit will start to track these files.
这个功能是将选择的未跟踪文件加入到source control中的版本跟踪控制中去
Remove
Stops tracking selected files and removes them from the working copy. The next commit will remove these files from being tracked in source control.
移除掉本地working copy中的选择的文件使其不被跟踪和控制
Add/Remove
A shortcut to stop tracking all files which are missing from the working folder, and to add any untracked files to source control. In Git, this also stages any modified files.
Fetch (Git only)
Download new commits from your remotes, but don't bring them in to your own branch yet.
这个会下载远程最新的提交,但是不会更新到你自己的分支中去。这种情况有可能sourcetree的pull按钮上面没有显示目前可以更新的提交,使用这个更进一步确认是否还有代码需要更新
Pull
Download new commits from your remotes and bring them in to your current branch, either by merging or rebasing. This icon will show a number over the top of it if there are commits available on the remote for you to pull (updated periodically based on your Preferences).
下载最新的代码更新到你当前的分支中去
Push
Upload new commits to a remote. This icon will have a number superimposed on it if you have commits which you haven't pushed yet.
上传代码,这个会弹出框体可能目前存在的多个可以提交的分支,注意只勾选需要提交的分支选项。
Branch
Create a new branch (also includes a tab for removing branches in Git)
创建新的分支
Merge
Merge changes into your current branch.
Tag
Create and manage tags.
Create Patch
Create a patch file either from your current uncommitted changes, or from one or more commits that you've already made.
Apply Patch
Apply a patch file either to your working copy or directly to the commit log.
Terminal
Open a Terminal at the selected location (this button may not be displayed in the default toolbar, right-click the toolbar to customise it if you wish to add it).
Settings
Access per-repository settings such as remotes.
提交过程如下:
1,选择修改并需要提交的文件查看后右键点击选择add to index
2,创建新的分支
3,选择commit将需要上传的文件修改提交到本地
4,然后push,一定要注意去掉不需要提交本次修改的分支
5,到github网站对应项目下查看提交的分支然后pull即可
sourcetree帮助文档的更多相关文章
- C#给PDF文档添加文本和图片页眉
页眉常用于显示文档的附加信息,我们可以在页眉中插入文本或者图形,例如,页码.日期.公司徽标.文档标题.文件名或作者名等等.那么我们如何以编程的方式添加页眉呢?今天,这篇文章向大家分享如何使用了免费组件 ...
- dotNET跨平台相关文档整理
一直在从事C#开发的相关技术工作,从C# 1.0一路用到现在的C# 6.0, 通常情况下被局限于Windows平台,Mono项目把我们C#程序带到了Windows之外的平台,在工作之余花了很多时间在M ...
- ABP文档 - Javascript Api - AJAX
本节内容: AJAX操作相关问题 ABP的方式 AJAX 返回信息 处理错误 HTTP 状态码 WrapResult和DontWrapResult特性 Asp.net Mvc 控制器 Asp.net ...
- ABP文档 - EntityFramework 集成
文档目录 本节内容: Nuget 包 DbContext 仓储 默认仓储 自定义仓储 特定的仓储基类 自定义仓储示例 仓储最佳实践 ABP可使用任何ORM框架,它已经内置了EntityFrame(以下 ...
- ABP文档 - SignalR 集成
文档目录 本节内容: 简介 安装 服务端 客户端 连接确立 内置功能 通知 在线客户端 帕斯卡 vs 骆峰式 你的SignalR代码 简介 使用Abp.Web.SignalR nuget包,使基于应用 ...
- ABP文档 - 通知系统
文档目录 本节内容: 简介 发送模式 通知类型 通知数据 通知重要性 关于通知持久化 订阅通知 发布通知 用户通知管理器 实时通知 客户端 通知存储 通知定义 简介 通知用来告知用户系统里特定的事件发 ...
- ABP文档 - Hangfire 集成
文档目录 本节内容: 简介 集成 Hangfire 面板授权 简介 Hangfire是一个综合的后台作业管理器,可以在ABP里集成它替代默认的后台作业管理器,你可以为Hangfire使用相同的后台作业 ...
- ABP文档 - 后台作业和工作者
文档目录 本节内容: 简介 后台作业 关于作业持久化 创建一个后台作业 在队列里添加一个新作业 默认的后台作业管理器 后台作业存储 配置 禁用作业执行 Hangfire 集成 后台工作者 创建一个后台 ...
- ABP文档 - Javascript Api
文档目录 本节内容: AJAX Notification Message UI Block & Busy Event Bus Logging Other Utility Functions A ...
随机推荐
- 随机生成一份试卷,试卷的种类分为单选、多选、判断三种题型。nodejs6.0 mysql
背景:从数据库中,随机生成一份试卷,试卷的种类分为单选.多选.判断三种题型. 首先我需要生成随机数id(在这之前我需要知道数据库中各个题型的题数,这样我才能设置随机数),并依据生成的随机数id,去查找 ...
- HDU-2544-最短路(Bellman-Ford)
Bellman-Ford算法是一个时间复杂度很高,但是它可以用来判断负环 负环就是上面的图,那个环的整体值小于零了,所以就是负环. 我们用Bellman-Ford算法进行更新,打一个表出来: k a ...
- Redis数据库(二)
1. Redis数据库持久化 redis提供了两种数据备份方式,一种是RDB,另外一种是AOF,以下将详细介绍这两种备份策略. 面试: 1.1 配置文件详解备份方式 [root@localhost ...
- Hive中文注释乱码解决方案
本文来自网易云社区 作者:王潘安 快速解决方法 目前的hive客户端在执行desc tablexxx和show create table xxx命令的时候,字段的中文注释会出现乱码情况,如(????) ...
- PHP优化之批量操作MySQL
设计一个数据表如下: create table optimization( id INT NOT NULL AUTO_INCREMENT, value VARCHAR(10) NOT NULL, PR ...
- Leetcode 330.按要求补齐数组
按要求补齐数组 给定一个已排序的正整数数组 nums,和一个正整数 n .从 [1, n] 区间内选取任意个数字补充到 nums 中,使得 [1, n] 区间内的任何数字都可以用 nums 中某几个数 ...
- 鼠标移动或者鼠标点击div消失不见排查
点击事件,导致某div或者容器样式隐藏,如果不能直接发现click事件绑定,那么首先排查哪些方法在控制div的样式, 然后看一看哪些方法在调用修改样式的方法. 然后再排查什么在调用修改样式的方法的方法 ...
- 【bzoj3671】[Noi2014]随机数生成器 贪心
题目描述 输入 第1行包含5个整数,依次为 x_0,a,b,c,d ,描述小H采用的随机数生成算法所需的随机种子.第2行包含三个整数 N,M,Q ,表示小H希望生成一个1到 N×M 的排列来填入她 N ...
- BZOJ 2242 [SDOI2011]计算器 ——EXGCD/快速幂/BSGS
三合一的题目. exgcd不解释,快速幂不解释. BSGS采用了一种不用写EXGCD的方法,写起来感觉好了很多. 比较坑,没给BSGS的样例(LAJI) #include <map> #i ...
- BZOJ 4516 [Sdoi2016]生成魔咒 ——后缀自动机
本质不同的字串,考虑SA的做法,比较弱,貌似不会. 好吧,只好用SAM了,由于后缀自动机的状态最简的性质, 所有不同的字串就是∑l[i]-l[fa[i]], 然后后缀自动机是可以在线的,然后维护一下就 ...