Today I Learned Notes to self about software development

    Moving hidden files in the command line

    I was attempting to move all files from a subfolder into the root folder in the command line and ran:

    mv subfolder/* .
    

    but to my surprise, files beginning with ., like .gitignore, did not move.

    It turns out hidden files are exlcuded by default I guess?

    If you want to move dotfiles, you can do this instead:

    mv subfolder/{,.}* .
    

    See this answer.

    #bash