作者popen (走走停停)
看板C_Sharp
標題[問題] Visual Studio 2019用git版本控管
時間Sat Aug 21 15:13:36 2021
想請問我想自己架git,控管我的c#程式版本
但我不想上傳到網路上,我只想架私人的git,
請問我能用一台windows電腦架git嗎?
然後在同一台電腦寫程式,也就是client, server
都是用同一台電腦,且都是在windows系統,
能否請問有沒有參考的網站步驟,我想試著做
--
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 223.139.159.2 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/C_Sharp/M.1629530018.A.27E.html
→ testPtt: 你用VS內建的git不就好了 08/21 16:06
→ awwseed: 然後 Visual studio 內建的 team explorer 就可以操作git 08/21 16:39
→ awwseed: 這樣就是你電腦單機的 git 版控 08/21 16:40
→ awwseed: 除非你指的 git server 是指 gitea, gitlab, github 那種 08/21 16:40
→ awwseed: 那種通常是你有多台裝置或多人偕同才需要 git server(?) 08/21 16:41
→ awwseed: git 本身不用依賴 git server 端就可以運作 08/21 16:41
推 jizang: gitea 08/21 21:08
→ popen: 是哦, 原來如此, 單我單機git版控也能建立分支嗎? 08/22 23:19
→ popen: 我再試試看, 目前我用git傳到網路上控管程式是可以 08/22 23:19
→ popen: 我再試試上述的方式, 看能不能單機版控, 感謝您 08/22 23:20
→ popen: 啊, 上述的方式就是我目前安裝的, 但它必須有git帳號 08/22 23:22
→ popen: 程式變更會傳到網路git的repository裡 08/22 23:22
→ popen: 能否請問單機版控要怎麼做,我不要傳到網路上呀! 08/22 23:23
推 Litfal: 不是有個選項 只在本機使用git(或類似的名字) 嗎。包括推 08/23 06:39
→ Litfal: 送,git完全可以只在本機使用。 08/23 06:39
推 eye5002003: 使用"git init --bare"指令就能滿足你了 08/23 20:16
推 ss610349: 偷懶一點可以用小烏龜 tortoise git 09/18 17:24
→ chinggoo: 小烏龜 + Google drive就夠了 10/12 12:59
推 aecho: local directory可以當成git repository 10/26 17:36
→ aecho: 用"git local directory repository"去google就可以找到了 10/26 17:37
推 aecho: 我自己是找個能用ssh登入的電腦,然後建個資料夾當reposito 10/26 17:45
→ aecho: ry來用。 10/26 17:46
→ aecho: 然後用ssh-copy-id,產生ssh不需要密碼的環境之後 10/26 17:47
→ aecho: 直接把那個資料夾當成remote repository來用 10/26 17:50
→ aecho: 該資料夾要用"git init --bare"處理過 10/26 17:51
推 mepowerlmay: 軟體名稱 bonobo github 免費的 可以參考 11/03 14:03