国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

git關(guān)聯(lián)遠程倉庫自己分支自用

這篇具有很好參考價值的文章主要介紹了git關(guān)聯(lián)遠程倉庫自己分支自用。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

初始化倉庫

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/api_test_202310232022 (tong)
$ git init
Reinitialized existing Git repository in D:/code/api_test_202310232022/.git/

關(guān)聯(lián)遠程倉庫并創(chuàng)建本地分支

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/api_test_202310232022 (tong)
$ git remote add origin git@git.n.xiaomi.com:qa-mall/pariss.git

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/api_test_202310232022 (tong)
$ git checkout -b hewangtong
Switched to a new branch 'hewangtong'

或者創(chuàng)建分支直接從遠程分支拉取代碼

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/api_test_202310232022 (tong)
$ git fetch
git checkout -b tong origin/tong
remote: Enumerating objects: 26505, done.
remote: Counting objects: 100% (414/414), done.
remote: Compressing objects: 100% (185/185), done.
remote: Total 26505 (delta 161), reused 310 (delta 115), pack-reused 26091
Receiving objects: 100% (26505/26505), 5.21 MiB | 7.96 MiB/s, done.
Resolving deltas: 100% (12325/12325), done.
From git.n.xiaomi.com:qa-mall/pariss
 * [new branch]        dev        -> origin/dev
 * [new branch]        tong -> origin/tong
 * [new branch]        kenpang    -> origin/kenpang
 * [new branch]        lsw-monior -> origin/lsw-monior
 * [new branch]        master     -> origin/master
Already on 'tong'
branch 'tong' set up to track 'origin/tong'.

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/api_test_202310232022 (tong)

代碼推遠程自己的倉庫文章來源地址http://www.zghlxwxcb.cn/news/detail-744560.html

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/hwt (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
        deleted:    ../yingLi2/.idea/vcs.xml

no changes added to commit (use "git add" and/or "git commit -a")

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/hwt (master)
$ git pull
Already up to date.

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/hwt (master)
$ git branch
* master

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/hwt (master)
$ git branch -r
  origin/main
  origin/master

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/hwt (master)
$ git checkout -b main
Switched to a new branch 'main'

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/hwt (main)
$ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.

    git pull <remote> <branch>

If you wish to set tracking information for this branch you can do so with:

    git branch --set-upstream-to=origin/<branch> main


cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/hwt (main)
$ git pull origin main
From git.n.xiaomi.com:tong/daily-code
 * branch            main       -> FETCH_HEAD
Merge made by the 'ort' strategy.
 hwt/.gitkeep  | 0
 hwt/test_main | 1 +
 2 files changed, 1 insertion(+)
 create mode 100644 hwt/.gitkeep
 create mode 100644 hwt/test_main

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/hwt (main)
$ git merge master
Already up to date.

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/hwt (main)
$ git checkout master
Switched to branch 'master'
D       yingLi2/.idea/vcs.xml
Your branch is up to date with 'origin/master'.

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/hwt (master)
$ git merge main
Updating c805f87..bfd80fc
Fast-forward
 hwt/.gitkeep  | 0
 hwt/test_main | 1 +
 2 files changed, 1 insertion(+)
 create mode 100644 hwt/.gitkeep
 create mode 100644 hwt/test_main

cassiel@DESKTOP-KPKFOEU MINGW64 /d/code/hwt (master)
$ git push
Enumerating objects: 7, done.
Counting objects: 100% (7/7), done.
Delta compression using up to 8 threads
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 458 bytes | 458.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0), pack-reused 0
remote:
remote: To create a merge request for master, visit:
remote:   https://git.n.ximi.com/tong/daily-code/-/merge_requests/new?merge_request%5Bsource_branch%5D=master
remote:
To git.n.ximi.com:tong/daily-code.git
   c805f87..bfd80fc  master -> master



到了這里,關(guān)于git關(guān)聯(lián)遠程倉庫自己分支自用的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔相關(guān)法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • 在Git中創(chuàng)建本地分支并關(guān)聯(lián)遠程分支

    ?前記: git svn sourcetree gitee github gitlab gitblit gitbucket gitolite gogs 版本控制 | 倉庫管理 ---- 系列工程筆記. Platform:Windows 10 Git version:git version 2.32.0.windows.1 Function: 在Git中創(chuàng)建本地分支并關(guān)聯(lián)遠程分支 目錄 一.在Git中創(chuàng)建本地分支并關(guān)聯(lián)遠程分支: 1. 新建本地分支: 2. 關(guān)聯(lián)遠

    2024年02月07日
    瀏覽(28)
  • git創(chuàng)建本地分支并關(guān)聯(lián)遠程

    @git創(chuàng)建本地分支并關(guān)聯(lián)遠程 注:首先本地跟倉庫都沒有分支的前提下進行操作 branch 后面參數(shù)解釋: -a 是查看本地和遠程的分支 -vv 是查看本地分支關(guān)聯(lián)的遠程分支

    2024年02月09日
    瀏覽(23)
  • Git創(chuàng)建本地分支并關(guān)聯(lián)遠程分支(項目代碼備份)

    1、創(chuàng)建本地分支 例如:git branch dev,這條命令是基于當前分支創(chuàng)建的本地分支,假設(shè)本地分支是main,則是基于main分支創(chuàng)建的本地分支dev。 2、切換到本地分支 例如:git checkout dev,這條命令表示從當前main分支切換到dev分支。 3、創(chuàng)建本地分支并切換 例如:git checkout -b dev,這

    2024年02月16日
    瀏覽(29)
  • Git重命名遠程分支名稱并關(guān)聯(lián)本地

    注意: 當前分支名(本地) 與 遠程分支名完全一致下?。?! 注意: 當前分支名(本地) 與 遠程分支名完全一致下?。?! 注意: 當前分支名(本地) 與 遠程分支名完全一致下?。?! 假設(shè)本地與遠程分支名都為A,現(xiàn)更換成B,操作如下: 第一步: 第二步: 第三步: 第四步:

    2024年02月11日
    瀏覽(26)
  • Git本地倉庫關(guān)聯(lián)多個遠程倉庫的方法

    使用場景:本地倉庫需要將代碼提交到不同的遠程倉庫,如既想往gitLab上提交又想提交到gitee,就需要同時關(guān)聯(lián)多個倉庫 要將多個遠程倉庫添加到本地git倉庫,可以使用以下命令: 其中, remote_name是你想要給遠程倉庫起的名字, remote_url是遠程倉庫的 URL。 例如,如果你想將

    2024年02月09日
    瀏覽(17)
  • 本地項目關(guān)聯(lián)遠程git倉庫

    背景:好久沒有新建git倉庫了、這次創(chuàng)建本地git倉庫和遠程推送時 遇到的問題 如果是復(fù)制已有項目重新執(zhí)行1刪除git倉庫、如果不需要刪除本地.git倉庫、第一步可以省略? rm -rf .git // 刪除本地.git文件 git init // 初始化git倉庫 git remote add origin http://172.16.22.22:880/common/frontend.git

    2024年02月07日
    瀏覽(32)
  • git的本地分支如何關(guān)聯(lián)遠程分支,比如github,gitlab,碼云等

    git的本地分支如何關(guān)聯(lián)遠程分支,比如github,gitlab,碼云等

    今天發(fā)布某版本的項目,準備創(chuàng)建個 v0point1 分支,后期如果修改該版本,直接在該分支上修改即可。 首先,使用 git branch v0point1 命令,創(chuàng)建本地分支 v0point1 ,如下圖所示: 其次,使用 git checkout v0point1 命令,切換到 v0point1 分支,如下圖所示: 當然,我們也可以使用 git ch

    2024年02月13日
    瀏覽(33)
  • Git本地倉庫與遠程倉庫的關(guān)聯(lián)與取消

    ?通過以上兩個步驟則可以操作本地目錄與遠程reposity的關(guān)聯(lián),再通過 git config --list 來查看最終的結(jié)果。

    2024年02月12日
    瀏覽(25)
  • 使用git把本地項目關(guān)聯(lián)遠程代碼倉庫,并推送到遠程倉庫

    你在本地新建了一個項目,寫好了代碼,但是沒有關(guān)聯(lián)遠程倉庫,怎么關(guān)聯(lián)并上傳呢? 你要先去gitee創(chuàng)建一個代碼倉庫,然后復(fù)制http地址。 首次提交項目代碼到一個新建的遠程倉庫: 方式一(推薦): 1、在項目目錄中右鍵 git bash here。 通過命令 git init 把這個目錄變成git可以

    2024年02月08日
    瀏覽(100)
  • Git解除項目原來遠程倉庫的關(guān)聯(lián)

    要解除Git項目與原來遠程倉庫的關(guān)聯(lián),你可以按照以下步驟進行操作: 1、查看當前項目關(guān)聯(lián)的遠程倉庫:使用git remote -v命令來查看當前項目已經(jīng)關(guān)聯(lián)的遠程倉庫的名稱和URL。 2、刪除項目關(guān)聯(lián)的遠程倉庫:使用git remote remove 命令來刪除項目關(guān)聯(lián)的遠程倉庫。在這里,是你要

    2024年04月29日
    瀏覽(24)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包