iT邦幫忙

1

angular cli 所產生的 .git

Zaku 2018-02-26 23:39:455190 瀏覽
  • 分享至 

  • xImage

請問使用angular cli所產的專案,裡面都會建置出.git資料夾.gitignore檔案.gitignore檔比較沒有問題,可以直接拿來使用,但要部署自己的git時應該要去掉他的.git資料夾,不清楚刪除後會影響cli某部分操作嗎,還是angular在做git時只會git scr等部分資料夾?

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中
1
aa71435723
iT邦新手 5 級 ‧ 2018-02-27 00:36:11

所產生的git, gitignore不會影響你的angular操作。
我目前為止的經驗,這兩個東西只有在我用github的時後才會用到他,
平時我都會直接刪除,需要時在用git語法建回來就好了。

Zaku iT邦新手 3 級 ‧ 2018-03-07 14:45:24 檢舉

感恩

1
暐翰
iT邦大師 1 級 ‧ 2018-02-27 08:40:08

刪除angular .git換成自己的.git沒有問題的

Zaku iT邦新手 3 級 ‧ 2018-03-07 14:45:32 檢舉

感恩

1
lioff
iT邦新手 5 級 ‧ 2018-03-07 10:49:37

完全某问题,.git 文档里面是你之前commit 的一些缓存,不需要就删就是会丢失commit 记录而已

Zaku iT邦新手 3 級 ‧ 2018-03-07 14:45:42 檢舉

感恩

我要發表回答

立即登入回答