0

I want to upload all the vim related files to git hub. I could not find information on how to do it for my scenario

My home directory structure

  Downloads
  Desktop
  Documents
  .vimrc
  .vim
    autoload
      <files>
    bundle
      <subfolders>
    colors
      <files>
    snippets 
      <files>
  <lot of other files and folders>

My expected git hub structure

 vim-essentials
   .vimrc
   .vim
      autoload
        <files>
      bundle
        <subfolders>
      colors
        <files>
      snippets 
        <files>

Basically I want to upload .vimrc file and .vim folder and all its contents onto a new github folder called vim-essentials

Srik
  • 2,341
  • 2
  • 21
  • 35

1 Answers1

1

You can create a .gitignore file with the following syntax:

*
!.gitignore
!.vim
!.vim/*
!vim.rc

More about .gitignore syntax for including only a few specific files

Community
  • 1
  • 1
Isaac Betesh
  • 2,935
  • 28
  • 37