Eclipse建立gitlab上面的任務

2021-07-27 15:18:04 字數 1711 閱讀 1752

由於自己的專案不知道什麼原因,老是使用git的時候不能上傳成功,這個裡面我們就介紹如何使用eclipse來進行建立專案,首先我們在gitlab建立乙個專案的名稱,我們獲得這個專案的git的路徑,所以首先我們先在eclipse中進行建立這個專案,然後在命令列中對這個專案變為git

然後我們可以把我們想建立的專案弄成git的形式,然後在進行上傳,原來我們可以使用git bash,但是由於git bash不能正常使用,這個裡面我們就使用eclipse來進行上傳

想上傳一下命令列

git global setup

git config --global user.name "jing wang"

git config --global user.email "[email protected]"

create a new repository

git clone [email protected]:jing.wang/mytest.git

cd mytest

touch readme.md

git add readme.md

git commit -m "add readme"

git push -u origin master

existing folder

cd existing_folder

git init

git remote add origin [email protected]:jing.wang/mytest.git

git add .

git commit

git push -u origin master

existing git repository

cd existing_repo

git remote add origin [email protected]:jing.wang/mytest.git

git push -u origin --all

git push -u origin --tags

這個裡面我們著重existing folder操作,我們這個裡面使用命令列的語句進行操作

git remote add origin [email protected]:jing.wang/mytest.git
這個是與遠端的專案建立鏈結

然後我們在通過eclipse來進行上傳

,然後在eclipse中把這個專案轉換成為git,

然後你就提交你想要的的檔案上去,後面你就會發現你的gitlab上面已經有了專案的存在

然後上傳就成功了,謝謝**

GitLab建立專案

首先在gitlab新建project 圖1 然後本地建立androidstudio專案 開啟命令列工具,輸入 git config global user.name x git config global user.email xx xx.com 繼續輸入 cd existing folder 本地...

eclipse無法建立Server

報錯 cannot create a server using the selected type 1.退出eclipse 2.到 工程目錄下 metadata plugins org.eclipse.core.runtime settings 3.把 org.eclipse.wst.server....

eclipse 建立opencv工程

新增路徑 在環境變數 ld library path 中指明庫的搜尋路徑。export ld library path home pt ptwork gitwork opencv 3.3.0 build lib ld library path可以用下面的命令檢視 ld libray path 的設定...