hello, How to add multiple folders in GIT.
something like this, I have git repo as below projectFolder --> .git --> folder1 -->subfolder1 --> files -->folder2 --> subfolder2 subfolder21 --> files(1--n) and I want add multiple new folders --> .git --> folder1 -->subfolder1 --> files -->folder2 --> subfolder2 subfolder21 --> files(1--n) -->newfolder1 -->newSubFolder1 --> files(1...N) -->newFolder2 -->newSubFolder2 -->newSubFolder21 --> files(1...N) The ones shaded in yellow are similar folder structure need to be added it will have multiple folders with multiple files in it. When I copy the folder the 'git status' doesn't show any new folders added. git add -A doesn't help. Please let me how to add folders and subfolders with files within it. Thanks, On Monday, November 20, 2017 at 7:47:05 PM UTC-8, Zvi Vered wrote: > > Hi, > > I tried: > git subtree split --prefix=windows > and got: > adb5b0b26c0793db6cf86ee7647a4a649c2c7a8d > > Then I tried to run : add+commit+push but got: > nothing to commit, working tree clean > > What should be the next step ? > > Thank you, > Zvika > > On Monday, November 20, 2017 at 10:17:25 AM UTC+2, Konstantin Khomoutov > wrote: >> >> On Sun, Nov 19, 2017 at 08:15:53PM -0800, Zvi Vered wrote: >> >> > I'm using the following command to create subtree: >> > git subtree add --prefix=DRV1 https://github.com/zviered/DRV1.git >> master >> > >> > The repo https://github.com/zviered/DRV1.git contains few folders. >> > I want my subtree to contain only one specified folder. >> > >> > Is it possible ? >> >> Yes, but not in the way you tried it. >> >> You first need to use the `git subtree split` command to prepare a >> synthetic history conststing of commits which modified only the code >> under that specific directly in DRV1. >> >> Then you will be able to `git subtree add` that line of history. >> >> -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.