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帮助文档相关推荐

  1. SourceTree 教程文档(了解界面)

    书签窗口 以下是打开SourceTree时出现的主窗口的示例. 本地和远程存储库 在该窗口中,您可以选择本地或远程按钮来查看计算机上的本地存储库或可克隆的远程存储库. 新的仓库 单击 +新建存储库 按 ...

  2. SourceTree 教程文档(进阶知识)

    SOURCETREE首选项/选项 根据SourceTree上的文件更改和远程更改刷新存储库 在SourceTree中使用嵌入式Git或System Git 编辑SourceTree配置而不打开应用程序 ...

  3. Git LFS笔记(文档、博客、issue摘录)

    Git LFS 文章目录 Git LFS 1. What is Git LFS? 1.1 Creating a new Git LFS repository 1.2 Cloning an existi ...

  4. 导出swagger2生成的文档

    百度了好多篇用法,没法用.特此记录一下 一.下载项目 下载https://github.com/Swagger2Markup/spring-swagger2markup-demo下的项目,保存,注意文 ...

  5. README 规范和项目文档规范

    1. README 规范 我们直接通过一个 README 模板,来看一下 README 规范中的内容: # 项目名称<!-- 写一段简短的话描述项目 -->## 功能特性<!-- 描 ...

  6. FastAPI 自动生成的docs文档没法使用

    FastAPI 自动生成的docs文档没法使用,当展开路径时候一直在转圈,具体就是这样 这个是由于swagger-ui 3.30.1 中的bug导致,具体bug可以看这里 我们可以通过在FastAPI ...

  7. 【软件工程】VB版机房文档总结

    前言: 软工视频+软工文档+UML视频+UML图的学习过程图! 这部分的知识很厚,只是知道了个大概!最开始 慢悠悠的像个老爷爷走进度,后来遇到点什么事,妈呀,管不了那么多了,赶紧弄完在说,拖了多久了都 ...

  8. 智能文档理解:通用文档预训练模型

    预训练模型到底是什么,它是如何被应用在产品里,未来又有哪些机会和挑战? 预训练模型把迁移学习很好地用起来了,让我们感到眼前一亮.这和小孩子读书一样,一开始语文.数学.化学都学,读书.网上游戏等,在脑子 ...

  9. 基于javaGUI的文档识别工具制作

    基于javaGUI的文档识别工具制作 对于某些文本,其中富含了一些标志,需要去排除,以及去获得段落字数,以下是我个人写的一个比较简单的文档识别工具,含导入文件.导出文件以及一个简单的识别功能. 1.功 ...

最新文章

  1. MongoDB 增删改查
  2. LeetCode-动态规划背包题-416. 分割等和子集
  3. Node.js HTTPS
  4. 学好Python能做什么?有哪些从业方向?
  5. 简单的实现图片预览, 通过原生ajax以及 jQuery两种方法实现图片预览,有更好的办法可以留言喔...................
  6. Java注解实现之how to use path variable @PathVariable
  7. FastJson的使用方法总结
  8. drupal7 smtp+mimemail+mailsystem 实现发送html邮件
  9. 计算机体系结构现状及发展论文,计算机体系结构的发展及技术问题探讨
  10. Uploading File using Ajax and receiving binary data in Asp.net (C#)[转]
  11. 6.SpringMVC 配置式开发-处理器
  12. Matlab的两种除法:左除(\)和右除(/)
  13. coji 编程机器人_娃喜欢就行—“编程机器人”COJI
  14. 昆腾助用户步入大数据和云时代
  15. python modbus_tk模块学习笔记(rtu slaver例程)
  16. (七) 立创EDA之PCB设计示例
  17. 谈一下自己收集资料和整理资料的经验
  18. 2022-2028年中国肉羊养殖行业市场行情动态及投资潜力研究报告
  19. ElasticSearch 组合查询(must not_must should filter)
  20. Lumion 9.0 建筑动画微电影:Uncaptured

热门文章

  1. android 覆盖安装问题
  2. 实现对现有的aspx请求进行异步队列控制处理
  3. mysql数据库引擎调优
  4. 关于Notes更改internet密码所需的缓存时间
  5. POJ - 1236 Network of Schools(强连通缩点)
  6. javascript核心_javascript核心之DOM操作
  7. 视频异常检测算法 python_使用Python进行异常检测
  8. [luogu4389]付公主的背包
  9. 11.IDA-this指针
  10. 基于 ida 的反汇编转换 Obj 的可行性 笔记(2)