Only folders exists in the parent and the subfolders. I've deleted all files using:  find my-path-here -type f -delete   example setup:  parent-path (this is parent folder for the repo)   -&gt; subfolder1   -&gt; subfolder2   -&gt; subfolder14   -&gt; subfolder67   I tried adding and commiting this setup but git is not adding the subfolders. I've searched the net but didn't see anything useful other than using "git add --all"  Here's my terminal output:  parent-path on  master  ➜  rm -rf .git  /home/myuser/parent-path  ➜  git init   Initialized empty Git repository in /home/myuser/parent-path/.git/  parent-path on  master  ➜  git add .                                                                    parent-path on  master  ➜  git add --all  parent-path on  master  ➜  git add "subfolder1"  parent-path on  master  ➜  git commit -av -m "initial commit"                                          On branch master  Initial commit  nothing to commit  parent-path on  master  ➜  git status                         On branch master  No commits yet  nothing to commit (create/copy files and use "git add" to track)  parent-path on  master  ➜  ls -la .gitignore     Specified path '.gitignore' doesn't exist.  parent-path on  master  ➜
5031
How can I add an empty directory (that contains no files) to a Git repository?
1566
When I execute a program without specifying the full path to the executable, and Bash must search the directories in $PATH to find the binary, it seems that Bash remembers the path in some sort of cache. For example, I installed a build of Subversion from source to /usr/local, then typed svnsync help at the Bash prompt. Bash located the binary /usr/local/bin/svnsync for "svnsync" and executed it. Then when I deleted the installation of Subversion in /usr/local and re-ran svnsync help, Bash responds:  bash: /usr/local/bin/svnsync: No such file or directory   But, when I start a new instance of Bash, it finds and executes /usr/bin/svnsync.  How do I clear the cache of paths to executables?
29259
This does not make any sense!  user@localhost:~/folder$ du -h --max-depth=1 6.1M    ./subfolder 6.1M    . user@localhost:~/folder$ ls -la subfolder total 6228 drwx------ 2 user user 6369280 2013-07-08 16:03 . drwx------ 9 user user    4096 2013-07-08 16:04 ..   du reports 6.1 megabytes, ls reports a total of "6228" (I don't know total of what)... but the folder is empty... indeed, there is no file there and it should be empty indeed.  Why is that? Can someone explain this to me?  This is happening in a VPS running Ubuntu 10.04  Thank you.
107719
I want to pull all mp3's that accidentially have been put into a flac folder out of it, to their parent folder.  It should not matter how deep the folders are, I just want to move the matching files exactly one directory up.  Here's how I select my files:  find . -path "*/flac/*" -name '*.mp3'   This works from my music folder, but I am stuck here. All solutions I have found, either move the files to the parent of the current folder, or require some fixed structure.
56431
I'm going crazy...  I have a file I want to include which path is C:\Users\Matthieu\Documents\Folder withOneSpace\myFile.tex. (As you can see with the \, I'm on windows actually)  I tried the following but none works:  \input{C:/Users/Matthieu/Documents/Folder withOneSpace/myFile} \input{C:/Users/Matthieu/Documents/Folder\ withOneSpace/myFile} \input{C:/Users/Matthieu/Documents/Folder withOneSpace/myFile.tex} \input{C:/Users/Matthieu/Documents/Folder\ withOneSpace/myFile.tex}   I also tried to put the file out of the folder with a space and it works (no surprise):  \input{C:/Users/Matthieu/Documents/myFile} --&gt; Works   All I found is to put a \ before the space but it doesn't work at all. --> Please help ! :)
15606
Is it possible to check out subdirectories of a repository in Git?  Imagine I am setting up a new WordPress installation. I will create two new directories for my plugin and theme customization:   wordpress/wp-content/plugins/myplugins/  wordpress/wp-content/themes/mytheme/   I want to maintain these directories via Git. In Subversion, I would accomplish this by having trunk/myplugins/ and trunk/mytheme/ directories and checking out subdirectories. Does Git have a way to accomplish the same task using a single repository?  I could just be missing the boat on some Git paradigm, as a long time SVN user with little exposure to Git.  Edit:  storing different content is an interesting way to handle this.
59319
Firstly, I'm aware there are tons of similar questions, and I know because I must have tried adapting at least 5 of them, but I'm still here asking because my crappy grasp of CMD (which I actually thought I was getting good at up until this point) is frustrating me with generic, unhelpful errors, and I can't understand what part of the syntax is wrong. This is likely due to the fact that other questions deal with the folder/filename structures of their respective OPs, and when I try to adapt the code to my own folder/file structure it refuses to work. Therefore, I'm here asking for a CMD for loop solution that'll actually work for my own file and folder structure.  I have a parent folder which contains many other folders, in which there are files:  Parent Folder      Subfolder            File1            File2      Subfolder            File1            File2      Subfolder            File1            File2   ...and so on.  I'm wanting to use a CMD for loop in combination with the move command to extract all the files in the subfolders to the parent folder, leaving each subfolder empty.  When giving the CMD for loop please break down what each part of the command is doing, as this'll help make sure I understand the code and hopefully minimise the trouble I have getting it to work for myself.
113033
I'm following  to install git on my laptop. When I do:  $ sudo apt-get install git-core  This is what my terinal shows:  Reading package lists... Done Building dependency tree         Reading state information... Done The following packages were automatically installed and are no longer required:      libasprintf0c2:i386   libcroco3:i386   libgettextpo0:i386   libgomp1:i386   libunistring0:i386 Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   git git-man liberror-perl Suggested packages:   git-daemon-run   git-daemon-sysvinit   git-doc git-el   git-arch git-cvs   git-svn   git-email   git-gui   gitk gitweb The following NEW packages will be installed:   git git-core git-man liberror-perl   0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.  Need to get 6,825 kB of archives. After this operation, 15.3 MB of additional disk space will be used. Do you want to continue [Y/n]? y  WARNING: The following packages cannot be authenticated!    liberror-perl git-man git git-core Install these packages without verification [y/N]?       E: Some packages could not be authenticated lucas@lucas-Inspiron-N5050:~$ sudo apt-get install git-core Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required:   libasprintf0c2:i386   libcroco3:i386   libgettextpo0:i386   libgomp1:i386   libunistring0:i386 Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   git git-man liberror-perl Suggested packages:   git-daemon-run git-daemon-sysvinit   git-doc git-el git-arch git-cvs git-svn   git-email git-gui gitk gitweb The following NEW packages will be installed:   git git-core   git-man liberror-perl  0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.  Need to get 6,825 kB of archives. After this operation, 15.3 MB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated!   liberror-perl git-man git git-core Install these packages without verification [y/N]? y Err httpq://py.archive.ubuntu.com/ubuntu/quantal/main liberror-perl all 0.17-1    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname) Err httpq://py.archive.ubuntu.com/ubuntu/ quantal/main git-man all 1:1.7.10.4-1ubuntu1    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname) Err httpq://py.archive.ubuntu.com/ubuntu/ quantal/main git amd64 1:1.7.10.4-1ubuntu1    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname) Err httpq://py.archive.ubuntu.com/ubuntu/ quantal/main git-core all 1:1.7.10.4-1ubuntu1    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)  Failed to fetch httpq://py.archive.ubuntu.com/ubuntu/pool/main/libe/liberror-perl/liberrorperl_0.17-1_all.deb    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)  Failed to fetch httpq://py.archive.ubuntu.com/ubuntu/pool/main/g/gi/git-man_1.7.10.4-1ubuntu1_all.deb    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)  Failed to fetch httpq://py.archive.ubuntu.com/ubuntu/pool/main/g/git/git_1.7.10.4-1ubuntu1_amd64.deb    Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname)  Failed to fetch http://py.archive.ubuntu.com/ubuntu/pool/main/g/git/git-core_1.7.10.4-1ubuntu1_all.deb   Something wicked happened resolving 'py.archive.ubuntu.com:http' (-5 - No address associated with hostname) E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   How could I install git on Ubuntu 12.10? I can't even do it from the Ubuntu Software Center.  Thanks in advance!
60814
I have a directory structure like this:  ├── Tom │   └── c │       └── 2 │           ├── file.jpg │           └── text.txt └── Sam     ├── 1     │   └── c     │       └── music.aac     ├── E     │   └── 9     │       └── pic.jpg     └── b         ├── 9         │   └── sound.aac         └── d             └── book.doc   I'd like to move all files from the various subfolders to the main parent folders (Tom, Sam, etc.) with a single command, and then deleting all the empty subfolders. How can I do that?  Thank you
16810
I would like the user to have full rights on this folder (as well as all sub-directories and files in it):  ~/.blabla   currently owned by root.  I have found numerous posts (in this forum and elsewhere) on how to do this for files but I can't find a way to do it for whole folders.
61637
I don't remember exactly how this directory got created. It's name is ~, the alternative we all use for home diretory. I also see a sticky bit attached with this directory. How shall I delete it? I fear running a normal rmdir would delete all the files from the home directory recursively. Here are the details :  mtk4@laptop:~/temp$ ls -l total 4 drwxrwxr-t 2 mtk4 mtk4 4096 Oct 17 2011 ~   How shall I proceed?  Another question : What does the total number specify on the first line of output of ls -l ? '4' in this case. There is just 1 directory as shown(other than . and ..).   I am using ubuntu 12.04.  Also asked same question on , as it seems to be relavant on both sites.
72412
I have to deal with a large number of files nested inside of directories (one file per directory), resembling something like this:  fred/result.txt john/result.txt mary/result.txt ...   I am currently using the following command to process each of those files:  find . -maxdepth 1 -type d \( ! -name . \) -exec bash -c \"cd '{}' &amp;&amp; processResult result.txt\" \;   I am looking for something I can add into the end of this command that will change the filenames to fred.txt, etc. and then later move the file into the parent directory to eliminate the extra layer of directories.  What would be the best way to do this?
69495
I'm new to Ubuntu. I'm running Ubuntu 14.04.1 LTS.   My problem is that when I try to access my desktop or any folder at my home directory, it always gives me this error   No such file or directory   even though the folder exists and I can see it with the ls command
48062
This question is kind of a phase II to the first question I posted at   I have a directory that contains a bunch of sub-directories, .zip files, and other random files not contained within a sub-directory.  I'd like a command line script to remove all sub-directories from within the parent directory, but keep all zip files and loose files that don't belong to any sub-directories. All of the sub-directories have content, so I believe I'd need to force their deletion with the -f command.  So basically, a command that looks inside the parent directory (or the current directory), deletes all folders from within it, but keeps all other content and files that are not a folder or contained within a folder.  I understand that deleting items from the command line requires special care, but I have already taken all necessary precautions to back up remotely.
90588
I have a ton of files and dirs in a subdirectory I want to move to the parent directory. There are already some files and dirs in the target directory which need to be overwritten. Files that are only present in the target should be left untouched. Can I force mvto do that? It (mv * ..) complains  mv: cannot move `xyz' to `../xyz': Directory not empty   What am I missing?
8918
One program created lots of nested sub-folders. I tried to use command  rm -fr * to remove them all. But it's very slow. I'm wondering is there any faster way to delete them all?
105219
I did a dumb thing and now need to undelete some files.  In fact, I have already recovered the files using , which has served me well on the other rare occasions where this has been necessary.  So I have the files.    The problem is that Glary and the  don't preserve the original folder structure.  In this case I have about 3,000 small files that I must match to their original locations in a complex nested folder hierarchy.  I could see the full folder paths in Glary before the restore, so I know the information is there; it's just not using that information and copying everything to root of my designated destination, rather than relative to the original location.