I like to kill two birds with one stone. If you really ant to track the downloads folder, stick a .gitignore file inside it and have it contain *. The .gitignore file is enough of a placeholder to keep the directory in place and you can easily modify it if you later want to track some of the downloads.
On Monday, March 16, 2015 at 6:37:40 AM UTC-7, rusi wrote: > > Hi > > Context is we're using git for collectively editing documents(mostly text > ie not Word etc). > Sharing is on bitbucket. > There are also largish reference-docs -- downloaded pdfs etc that are > referenced but not ours -- dont want these in the repo. > > So... > > If I make a .gitignore that contains the 'downloads' directory, then the > contents of downloads is of course ignored but also downloads itself. > Making .gitignore contain downloads/* does not add downloads. > Finally I added a dummy-file to downloads; add-commited it and then > ignored downloads. > > Seems convoluted and unsure (to me). > Is there a better way? > > Rusi > > -- > > http://blog.languager.org > > -- 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.