相关疑难解决方法(0)

忽略git子模块的新提交

背景

在Linux上使用Git 1.8.1.1.存储库如下所示:

master
  book
Run Code Online (Sandbox Code Playgroud)

子模块创建如下:

$ cd /path/to/master
$ git submodule add https://user@bitbucket.org/user/repo.git book
Run Code Online (Sandbox Code Playgroud)

book子模块是干净的:

$ cd /path/to/master/book/
$ git status
# On branch master
nothing to commit, working directory clean
Run Code Online (Sandbox Code Playgroud)

问题

另一方面,主人显示书子模块有"新提交":

$ cd /path/to/master/
$ git status
# On branch master
# Changes not staged for commit:
#   (use "git add <file>..." to update what will be committed)
#   (use "git checkout -- <file>..." to discard changes in working directory)
#
#       modified:   book (new …
Run Code Online (Sandbox Code Playgroud)

git ignore status git-submodules

73
推荐指数
4
解决办法
4万
查看次数

在另一个git仓库中维护一个Git仓库

我有一个包含AngularJS Web应用程序的git repo.

它有一个名为的子文件夹build,它由gulp任务创建.我正在部署到Azure,因此它直接连接到我的bitbucket目录.

我想将build文件夹作为一个单独的git仓库,从中部署Azure应用程序.我如何在git中实现这一点?

git github

18
推荐指数
2
解决办法
2万
查看次数

标签 统计

git ×2

git-submodules ×1

github ×1

ignore ×1

status ×1