Re: [git-users] Default remote?
On Wed, 4 Sep 2013 07:43:40 -0700 (PDT) Juha Aaltonen turbosc...@gmail.com wrote: Is there a way to put a default remote repo for remote repo operations such that it's used if the remote repo is omitted from the command line? It's irritating to have to write the long remote repo path part of which sometimes looks like ciphered. git remote add foo ssh://me@myserver/a/long/path/to/my/repo and then git push foo master otherbranch andanotherbranch -- 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/groups/opt_out.
[git-users] Default remote?
Is there a way to put a default remote repo for remote repo operations such that it's used if the remote repo is omitted from the command line? It's irritating to have to write the long remote repo path part of which sometimes looks like ciphered. -- 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/groups/opt_out.
Re: [git-users] Default remote?
On Wednesday, September 4, 2013 4:59:01 PM UTC+2, Konstantin Khomoutov wrote: On Wed, 4 Sep 2013 07:43:40 -0700 (PDT) Juha Aaltonen turbo...@gmail.com javascript: wrote: Is there a way to put a default remote repo for remote repo operations such that it's used if the remote repo is omitted from the command line? It's irritating to have to write the long remote repo path part of which sometimes looks like ciphered. git remote add foo ssh://me@myserver/a/long/path/to/my/repo and then git push foo master otherbranch andanotherbranch You can also configure the default place to push for a branch: git push -u foo master after that, you can push master to the foo repo simply like this: git push Usually when you clone from a remote, this configuration is set up for you. You only have to do it manually when you initialized the repo locally. -- 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/groups/opt_out.