VSCode Does Not Recognize Git Folders not in Root

时间:2015-12-08 19:28:58

标签: git visual-studio-code

Is it possible for VSCode to recognize git repositories that are not at the root folder? For example, I have a folder structure like this:

public void onItemRemove(final RecyclerView.ViewHolder viewHolder, final RecyclerView recyclerView) { final int adapterPosition = viewHolder.getAdapterPosition(); final Photo mPhoto = photos.get(adapterPosition); Snackbar snackbar = Snackbar .make(recyclerView, "PHOTO REMOVED", Snackbar.LENGTH_LONG) .setAction("UNDO", new View.OnClickListener() { @Override public void onClick(View view) { int mAdapterPosition = viewHolder.getAdapterPosition(); photos.add(mAdapterPosition, mPhoto); notifyItemInserted(mAdapterPosition); recyclerView.scrollToPosition(mAdapterPosition); photosToDelete.remove(mPhoto); } }); snackbar.show(); photos.remove(adapterPosition); notifyItemRemoved(adapterPosition); photosToDelete.add(mPhoto); }

2 个答案:

答案 0 :(得分:1)

它必须位于根级别,您一次只能连接到一个存储库。您可以使用git中的子模块将另一个存储库添加为您的链接,但它可以位于任何子目录中。

答案 1 :(得分:1)

在12月的更新中,我们支持父文件夹中的git。