在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) 我有一个包含AngularJS Web应用程序的git repo.
它有一个名为的子文件夹build
,它由gulp任务创建.我正在部署到Azure,因此它直接连接到我的bitbucket目录.
我想将build文件夹作为一个单独的git仓库,从中部署Azure应用程序.我如何在git中实现这一点?