目前在團隊python team是用Bitbucket版本控制

 

//建立新專案

線上部分

網址:https://bitbucket.org/

1. 登入 Bitbucket

2. 點擊+ create 按鈕並選擇 CREATE A NEW 裡的Repository

3. 建立Project

Create a new repository 開始填寫表格

- Owner (自己或選擇group:我這邊專案是iisi_python_web)

- Project (選擇group會出現) :Test

- Repository name:Test_frontend

- Version control system:我選git

4. 填寫完畢並點擊Create repository按鈕

5. 找到Get started with command line,這邊會提供步驟

 

本機端

我想要 kaikai 資料夾進行版本控制

我是使用Git bash開啟

1. mkdir kaikai 先建立資料夾

2. cd kaikai 進到資料夾裡

3. git remote add origin 網址(複製Bitbucket專案網址)

4. 在資料夾新增檔案(團隊使用 npm 處理)

5. 把更動過的記錄上傳到Bitbucket,就可以在網頁上看到你commit的訊息。

- git status 可看更動過的檔案

- git add 新增檔案

- git commit -a -m "First Commit" 建立第一版

- git push 推上去

 

其他:Bitbucket可以跟trello連動耶,wow

 

//本機建立原本就有的專案

線上部分

1. 登入 Bitbucket

2. Clone this repository 點擊專案找到clone按鈕複製網址

 

本機端

我是使用Git bash開啟

1. 貼上git clone https://帳號@bitbucket.org/test.git

2. 就會產生test資料夾,wow

3. npm install(根據package.json)

  

//Sourcetree:GUI 圖形化介面,懶的記指令可以這個點點推上Bitbucket

網址:https://www.sourcetreeapp.com/

1. 先下載並安裝,我是使用google帳號登入拉XD

2. 到 Bitbucket 的 project 點擊 Clone in Sourcetree

3. 就連動惹,wow

arrow
arrow

    Kaikai凱開 發表在 痞客邦 留言(1) 人氣()