博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
TortoiseGit中push的使用
阅读量:7089 次
发布时间:2019-06-28

本文共 982 字,大约阅读时间需要 3 分钟。

 

Options

Force (May discard known changes) 

This allows remote repository to accept a safer non-fast-forward push.

This can cause the remote repository to lose commits; use it with care.

This can prevent from losing unknown changes from other people on the remote.

It checks if the server branch points to the same commit as the remote-tracking branch (known changes).

If yes, a force push will be performed.Otherwise it will be rejected.

Since git does not have remote-tracking tags, tags cannot be overwritten using this option.

This passes --force-with-lease option of git push command.

 

Force (May discard unknown changes) 

This allows remote repository to accept an unsafe non-fast-forward push.

This can cause the remote repository to lose commits; use it with care.

This does not check any server commits, so it is possible to lose unknown changes on the remote.

Use this option with Include Tags to overwrite tags.

This passes the traditional --force option of git push command.

 

转载地址:http://kdfql.baihongyu.com/

你可能感兴趣的文章
快钱报错:javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name解决
查看>>
Hadoop集群WordCount运行详解(转)
查看>>
[转]SSM框架——详细整合教程(Spring+SpringMVC+MyBatis)
查看>>
一次性搞清楚equals和hashCode
查看>>
Android Studio IDE的 LogCat如何过滤指定应用的调试信息
查看>>
23个常用正则表达式(数值和字符串)
查看>>
struts2中struts.xml配置文件详解
查看>>
Javascript中的with用法
查看>>
GIS-008-ArcGIS JS API 全图
查看>>
js splice方法
查看>>
Linux--多网卡的7种Bond模式
查看>>
ADO 连接数据库,取到VT_DATE型日期转换成 int型
查看>>
properties 配置文件中值换行的问题
查看>>
Azure 部署 Asp.NET Core Web App
查看>>
Masonry和FDTemplateLayoutCell 结合使用示例Demo
查看>>
linux 切换用户之后变成-bash-x.x$的解决方法
查看>>
用备份控制文件做不完全恢复下的完全恢复(数据文件备份<旧>--新建表空间--控制文件备份<次新>--日志归档文件<新>)...
查看>>
python下RSA加密解密以及跨平台问题
查看>>
详解Java Spring各种依赖注入注解的区别
查看>>
android 区分wifi是5G还是2.4G(转)
查看>>