Git命令筆記

2021-10-08 08:19:03 字數 554 閱讀 9743

碼雲建立倉庫並上傳**

git 全域性設定:

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

git config --global user.email "your email"

建立 git 倉庫:

git status //檢查狀態

git add .

git commit -m "first commit"

git remote add origin

git push -u origin master

已有倉庫?

cd existing_git_repo

git remote add origin

git push -u origin master

碼雲建立分支並切換
git checkout -b login  //login為分支名稱

git branch //檢視所有分支

未完待續…

Git命令筆記

常用配置 使用 加速git clone,這裡的1081埠在ssr客戶端選項 本地 本地埠可以設定 https.proxy git pull clone太慢的解決方法 有時候要拉的檔案太大了就會很慢,甚至拉不下來,這時候可以試試下面這個方法 git配置 取消 git config global uns...

Git 命令筆記

設定使用者資訊 git config global user.name 名字 git config global user.email 郵箱位址 設定終端配色 git config global color.diff auto git config global color.status auto ...

git命令筆記

git init 初始化乙個git倉庫,使用git init命令 git add 新增大stage git commit m 提交到本地倉庫 git config global user.name your name git config global user.email email exampl...