[精讚] [會員登入]
860

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

你可能感興趣的文章

使用virtualbox每次都忘記的事情 share folder from win host to linux guest vm

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

openssl package update issue caused by cve-2022-2068 centos7 is at maintenance support phase2, only critical impact security issues will be patched

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

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

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

隨機好文

[java]縣市IDP建置 使用NetBeans建置IDP程式

bitbucket repository control application setup 安裝完bitbucket服務後,須設定bitbucket.properties

測試及處理slow http attack on Apache 2.4.6 at CentOS-7 avoiding and testing slow http attack

how to add physical disks into HP smart array through esxi interface 如何在磁碟陣列卡上加入新的硬碟-未完待續

踩雷!intellij idea 自動把context都清掉?! iml檔會控制work space context