[精讚] [會員登入]
833

intellij IDEA git設定說明

whenever using git push fuction in the intellij IDEA

分享此文連結 //n.sfs.tw/13314

分享連結 intellij IDEA git設定說明@外行中的外行
(文章歡迎轉載,務必尊重版權註明連結來源)
2019-10-21 08:58:26 最後編修
2019-05-23 10:54:45 By jung
 

最近把專案都移到IDEA上,由於不熟悉操作,在新增分支改來改去後,要用git push 時就出現了" push rejected by remote "訊息

查到一個解法

先使用終端機進到專案的目錄下,例如/user/project/example-project/

輸入下列指令

git pull origin master --allow-unrelated-histories

From https://resource.sso.edu.tw/jung/cncauth2.1
 * branch            master     -> FETCH_HEAD
   827b4cf..b43ba8b  master     -> origin/master
Already up to date.

這樣就正常了

再進到IDEA使用GIT -> Push就成功上傳了

 

END

你可能感興趣的文章

how to stop wildfly keeping standalone server log how to stop wildfly keeping standalone server log

unknown issue after downgrade to intellij idea community version 使用社群版遇到的奇怪問題

how to make wicket web application runs under docker enviorment with correct encoding 在docker環境下,wicket web application 編碼錯誤的問題

在IDEA從JDK8升級到JDK11遇到的奇怪問題 在IDEA遇到的JAVA11函式庫引入問題

如何用git log功能產生有固定格式的commit紀錄 how to create a git commit history log file with custom format

specific instructions to create a maven archetype from local existing project. Generate an archetype from the project

隨機好文

縣市IDP更換SSL憑證及修改servername+wildfly等設定 縣市IDP更換SSL

更新IDP程式以新增及修正本地管理帳號登入 add locallogin page and function with local authorized account

如何在ubuntu 18.04上設定一開機就啟動virtualbox某個vm a way to setup ubuntu18.04 for start vm on boot

JIRA instance migration phase1 how to migrate JIRA from centos6 to centos7

使用bash script 顯示及比較記憶體剩餘用量 How to get the available memory reported as a percentage then compare Numbers and Strings in Linux Shell Script