Skip to content

Instantly share code, notes, and snippets.

View luizrfc's full-sized avatar
💻
Working a lot!!!!

Luiz Ricardo luizrfc

💻
Working a lot!!!!
View GitHub Profile
@luizrfc
luizrfc / git-pushing-multiple.rst
Created August 17, 2019 02:17 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@luizrfc
luizrfc / .gitconfig
Created July 2, 2019 01:50 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls