On Thursday, March 13, 2014 4:19:06 AM UTC+1, Tony George wrote:
> Hi,
> I have a bitbucket private repo for dotfiles. This contains files like 
> .vimrc and so on.
> For Vim, I am using Pathogen. The plugins from GitHub are installed as Git 
> Submodules. The instructions I used to set this up are similar to:
> *http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/
> <http://vimcasts.org/episodes/synchronizing-plugins-with-git-submodules-and-pathogen/>*
> Now, I have modified some of the plugins that are installed as submodules. 
> Made commits inside the submodule:
> cd .vim/bundle/snipmate.vim/
> git add .
> git commit -m "message"
> cd ~/dotfiles/
> git add .
> git commit -m "message"
> But when I push the main repo (dotfiles) to the bitbucket, it is not 
> pushing up the changes I have made in the snipmate.vim.
> How can I get the changes I make on the local machine no be pushed to the 
> bitbucket repo?
> At the same time, I would like to update the snipmate.vim plugin if there 
> are updates in the original repo.
> Is it possible?
I don't think submodules will propagate pushes from the host repository, 
although there might be a way in submodules to configure such behavior. If 
not, then you can at least make a hook in the host repository that does 

Another way to approach this is to use a tool like myrepos to keep all the 
repos in sync: http://myrepos.branchable.com/

Taking it a step further, you can also use myrepos in combination with 
vcsh, which is especially developed for handling dotfiles and other things 
in your home directory: https://github.com/RichiH/vcsh

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.

Reply via email to