簡體   English   中英

如果還沒有與我的本地存儲庫鏈接的遠程存儲庫,我如何 go 到克隆的存儲庫並簽入 git bash?

[英]How do I go to the cloned repo and check in git bash if there isn't already a remote repo linked with my local repo?

我使用哪些命令將 go 連接到克隆的倉庫,然后檢查我是否還沒有將遠程倉庫鏈接到本地倉庫?

$ git init
Initialized empty Git repository in C:/Users/tomas/Desktop/Continuous Integration/CIB/Labo4/.git/
$ git remote add origin https://github.com/howest-gp-cib/st-1920-2-S1G2-labo4-arno-tomas.git
$ git status
On branch master

No commits yet

nothing to commit (create/copy files and use "git add" to track)
$ git clone https://github.com/howest-gp-cib/st-1920-2-S1G2-labo4-arno-tomas.git
Cloning into 'st-1920-2-S1G2-labo4-arno-tomas'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 7 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), 2.38 KiB | 110.00 KiB/s, done.

抱歉,如果我沒有正確發布問題,這是我的第一個問題。

如果我理解了這個問題,您想知道新創建的本地 git 存儲庫是否有現有的遙控器? 這不會發生,但是對於您之前克隆的存儲庫的現有本地副本,例如,您不記得是否添加了其他遙控器,請嘗試git remote -v - 這將列出所有已被為存儲庫定義。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM