[SM-Discuss] scm next steps
Eric Sandall
eric at sandall.us
Thu May 4 16:46:17 EDT 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Arwed von Merkatz wrote:
> On Thu, May 04, 2006 at 01:33:17PM -0700, Eric Sandall wrote:
<snip>
>> Is there a way we can avoid having to use a URL when pushing to the
>> server we checked out from and with the branch we're currently in
>> without setting an alias?
>
> There is, but it needs a little setup:
> - edit .git/remotes/origin in your repository, add these lines:
> Push: refs/heads/devel:refs/heads/devel
> Push: refs/heads/master:refs/heads/origin
> Push: refs/heads/stable-0.3:refs/heads/stable-0.3
> Push: refs/heads/stable-rc-0.4:refs/heads/stable-rc-0.4
>
> Now you can push using the branch names, i.e.
> $ git push origin master (pushes your master branch to remote origin ,i.e.
> the remote test grimoire)
> $ git push devel devel
> ...
Since those are already in .git/remotes/origin I can just use the names
then. Looks like git sets these up for us. ;)
- -sandalle
- --
Eric Sandall | Source Mage GNU/Linux Developer
eric at sandall.us | http://www.sourcemage.org/
http://eric.sandall.us/ | SysAdmin @ Shock Physics @ WSU
http://counter.li.org/ #196285 | http://www.shock.wsu.edu/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEWmgZHXt9dKjv3WERAqeIAKDJADS40lCTw34trGpHheoVktDcnwCgiPRn
NzFFvfF5RJNlhQs7U/Dh0Bw=
=VVHP
-----END PGP SIGNATURE-----
More information about the SM-Discuss
mailing list