Push Tags:
默认情况下,执行push操作,tags不会提交到远程仓库。如果你希望commit的同时提交tag,才需要勾选这个选项。
如果你选择All,不属于当前选择分支的tag也会提交到远程仓库;如果你选择Current Branch,那么就只会提交当前分支的Tag。
一般提交代码时,是不用勾选Push Tags的。

Update Project:

Update Type

Merge(合并)

采用合并的方式来更新代码,此时会产生一个commit,这也是一般常用的默认的操作,这个的好处是能够在log中看到所有的操作记录,但是对于代码洁癖来说,可能会无法接受

结果等同于执行git pull(git fetch + git merge)

Rebase(重定)

就是所有的本地commit都是默认放到远程的commit记录的顶部,log也只会有一条记录线,简洁,但是有时候排查问题会不方便。

结果等同于执行git pull --rebase(git fetch + git rebase)

Branch Default

使用当前分支的默认设置进行更新。

每个分支都可以设置自己的update方式,可以在config中设置,这个是选择分支默认的方式。

此选项用于选择应用分支的默认命令,default branch在.git/config配置文件中指定

Clean working tree before update
(1)、using stash:在更新前先清除stash

git冲突解决
如果本地修改了某个文件,此时从远程仓库更新会提示冲突。
解决方法有2种:
1.执行commit,然后push操作,这时会提示你有冲突(会弹出一个提示窗口,可以选择Merge),Merge即可;

2.如果代码未开发完,此时还不想提交。可以执行Git->Repository-Stash Changes(此操作会将你的本地变更保存起来)起一个名字,然后执行pull操作。
此时更新操作会成功,然后执行Git->Repository-Unstash Changes,选择刚刚Stash Changes起的名字,此时会提示代码有冲突。会弹出Merge窗口,执行Merge操作即可。

注意:执行此操作后Merge后的文件只是在本地,需要执行Git Commit&Push来提交到远程仓库。

idea Push Tags选All还是Current Branch?相关推荐

  1. fatal: The current branch dev has no upstream branch. To push the current branch and set the remote

    fatal: The current branch dev has no upstream branch. To push the current branch and set the remote ...

  2. git push错误(fatal: The upstream branch of your current branch does not match)解决方案

    有时候通过git push命令时会提示不成功,错误提示如下: localhost:lean-server alioo$ git push fatal: The upstream branch of y ...

  3. hint: Updates were rejected because the tip of your current branch is behind(git push线上与本地版本冲突问题)

    Git本地代码推送到线上出现的问题 错误信息为: error: failed to push some refs to 'http://**:**/**/**.git' hint: Updates w ...

  4. git push 出现 The current branch dev has no upstream branch.的问题

    git push 出现 The current branch dev has no upstream branch.的问题 原因:本地分支没有和远程分支关联,导致无法push 解决方法:git pus ...

  5. fatal: The current branch xiao has no upstream branch. To push the current branch and set the remote

    场景: 使用git 的时候,git push 然后提示我以下错误 $ git pushfatal: The current branch xiao has no upstream branch.To ...

  6. 报错 fatal: The current branch html has no upstream branch. To push the current branch and set the

    场景: 远程上有已存在的项目的后端代码,想要把这个项目的前端代码推送上去. 做的步骤: 1.git status 2. git add . 注意add和.之间有空格 3.git commit - m ...

  7. 【git报错】The current branch dev has no upstream branch. To push the current branch and set the remote

    发现问题 本地新建了一个dev分支,然后把dev分支下的代码push到远程仓库中,使用git push,但是报错了,如下: fatal: The current branch dev has no u ...

  8. git 本地新建分支上传报错The current branch dev has no upstream branch.To push the current branch and setremote

    项目本地初始化后,commit执行完毕,然后执行git push,报如下错误: $ git push fatal: The current branch dev has no upstream bra ...

  9. idea集成git-push报错push of current branch was rejected remote changes need to be merged before pushing

    合并提交出现问题 问题 push of current branch was rejected remote changes need to be merged before pushing ​ 出错 ...

  10. git pull出现There is no tracking information for the current branch

    使用git pull 或者 git push 的时候报错 gitThere is no tracking information for the current branch. Please spec ...

最新文章

  1. 全球30篇最热门的计算机视觉和深度学习论文
  2. 华为交换机netstream配置
  3. 任何时候都不要轻易满仓
  4. 开源呼叫中心软件 GOautodial 存在两个漏洞,可导致RCE
  5. 实现二叉树的基本操作(Java版)
  6. Task Office for mac(任务办公计划管理)
  7. Ant-编译构建(1)-HelloWorld
  8. JanusGraph学习手册
  9. 在mysql中创建视图需要使用什么语句_mysql如何创建视图?创建语句是什么?
  10. 总和生育率模型matlab,中国人口增长预测 灰色模型——全国数学建模大赛
  11. android模拟器动态调试,Unity Android模拟器调试
  12. 210所高校21届保研率曝光!这些211保研率堪比985!
  13. 双球坐标系_【天文】教你认识三大天球坐标系!(上)
  14. iPhone 屏幕适配尺寸整理
  15. python表单数据系统_python 网页提交表单数据库
  16. efi shell的英文介绍_EFI和EFI Shell命令简介
  17. linux skb机制,skb 的分配细节
  18. does not have a companion object, and thus must be initialized here
  19. 接口测试必知必会知识点
  20. 用最生动的语言重现经典!听我细细道来冯·诺依曼体系结构

热门文章

  1. cookie安全性问题
  2. xpwifi热点设置android,笔记本xp系统wifi热点设置教程(图文)
  3. Microsoft Office SharePoint Server 2007案例实战开发
  4. Zynga和StarLark庆祝《Golf Rival》面世四周年
  5. 德玛西亚皇子背景故事
  6. 前端下载excel文件的两种方法
  7. 北京app开发公司排行榜-开发app的公司有哪些呢
  8. 跨考计算机要选择408吗,408难度比较大,对于跨考更是如此,应从以下三个方面做准备...
  9. SLAM综述阅读笔记四:A Survey on Deep Learning for Localization and Mapping: Towards the Age of Spatial 2020
  10. 四级词汇——不择手段记单词new