Git 建立專案及分支

2021-09-02 19:01:59 字數 735 閱讀 1783

當你接手乙個新專案的時候如何快速地搭建專案的基礎框架呢。

1.首先我們去到gitlab,來到主頁這裡右上角new project。

2.填寫專案名稱等

3.按照提示在自己的工作目錄下面初始化專案。

git config --global user.name "***"

git config --global user.email "wet@***.com"

git clone testtouch readme.mdgit add readme.mdgit commit -m "add readme"git push -u origin master

4.初始化後在gitlab上面建立dev分支。

5.自動建立乙個新的本地分支,並與指定的遠端分支關聯起來

git checkout -b feature_dwt origin/feature_dwt

如何使用git建立專案,建立分支

git config global user.name your name git config global user.email you example.com 建立乙個存放工程的資料夾 git init命令用於初始化當前所在目錄的這個專案 會建立乙個隱藏檔案 git 建立 main.c 檔案 ...

如何使用git建立專案,建立分支

本文 git config global user.name your name git config global user.email you example.com 建立乙個存放工程的資料夾 git init命令用於初始化當前所在目錄的這個專案 會建立乙個隱藏檔案 git 建立 main.c ...

工具 git 如何使用git建立專案,建立分支

git config global user.name your name git config global user.email you example.com 建立乙個存放工程的資料夾 git init命令用於初始化當前所在目錄的這個專案 會建立乙個隱藏檔案 git 建立 main.c 檔案 ...