[精讚] [會員登入]
736

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

你可能感興趣的文章

更新java版本後一定要做的事情 how to deal with PKIX path building failed issue after upgrade java sdk version in IDE

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

在intellij IDEA解決檔案內容顯示為UTF-8字碼而不是中文的問題 how to show correct language content of file, instead of utf-8 encoded charactors

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

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

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

我有話要說

>>

限制:留言最高字數1000字。 限制:未登入訪客,每則留言間隔需超過10分鐘,每日最多5則留言。

訪客留言

[無留言]

隨機好文

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

設定win10開機自動執行openvpn連接vpn server how to make win10 connecting to a vpn server automactically after booting up

縣市IDP新增API功能 修改IDP程式增加API介面

在apache http server停用TLS 1.0/1.1 and SSL 2.0/3.0 How to disable outdated versions of SSL/TLS on Apache

縣市端新增syncdata spi功能 為了讓部裡主機可以透過OAUTH2流程,呼叫縣市同步SYNCDATA 的API