[精讚] [會員登入]
826

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 make wicket web application runs under docker enviorment with correct encoding 在docker環境下,wicket web application 編碼錯誤的問題

[NetBeans]如何從git下載專案改建為自己的專案 修改git專案

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

using google Appscript to send messages through LINE NOTIFY 使用google app script傳送LINE NOTIFY

intellij IDEA git設定說明 whenever using git push fuction in the intellij IDEA

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

隨機好文

debian安裝drupal細節 設定apache2的細節

[NetBeans]如何從git下載專案改建為自己的專案 修改git專案

setup jira using ssl on apache reverse proxy 設定jira使用https連線

縣市端IdP新增自訂首頁內容功能 合併本部主程式,手動於mongo內新增管理使用者資料

更新程式取消google recaptcha改用輸入驗證碼 update cnclibs to 0.0.8.6