Skip to content

Instantly share code, notes, and snippets.

@tranghaviet
Created September 28, 2018 04:46
Show Gist options
  • Save tranghaviet/24d6e15688d5ea6c5a79b8465a9f882a to your computer and use it in GitHub Desktop.
Save tranghaviet/24d6e15688d5ea6c5a79b8465a9f882a to your computer and use it in GitHub Desktop.
.git/config for source different than origin
[remote "tranghv"]
url = git@tranghv:owner_user_name/repo.git
fetch = +refs/heads/*:refs/remotes/my_user_name/*
# it will use ssh with config as tranghv in ~/.ssh/config (e.g default config is bitbucket.org instead of tranghv)
# usage: git pull tranghv branch-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment