0

I have a local git repository. I commit a change using git commit -a and it updates the local repository. So far so good.

I would like it so when I do this it also automatically pushes to my remote repository on Bitbucket. How do I do this?

Phil Hunt
  • 507
  • 1
  • 4
  • 15
  • I think that this answer will help you. http://stackoverflow.com/questions/7925850/how-to-automatically-push-after-committing-in-git – Svetlin Zarev Jan 14 '14 at 17:26
  • 2
    It is possible but not really a good idea. What if there are upstream changes? If you push automatically without pulling those changes down your push will fail. – Abizern Jan 14 '14 at 17:29

0 Answers0