Created
September 28, 2018 04:46
-
-
Save tranghaviet/24d6e15688d5ea6c5a79b8465a9f882a to your computer and use it in GitHub Desktop.
.git/config for source different than origin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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