Re: Functional GIT on F11 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Aaron Gray wrote:
> Right I am not doing upstream commits back to svn luckily. I submit
> patches which I prefer anyway as it keeps things simpler and safer;
> I really don't want to corrupt a major software projects repository
> :)

Where's the fun in being safe? ;)

> Thanks again for the help and advice, I am going to do one of my ssh
> crib sheets for git that I can cut and paste into the terminal,
> makes life simpler, and less error prone. I was thinking I could
> allow the user to enter their repository path then generate all the
> command lines for whatever they want to choose, all with a little
> bit of Javascript, for a bit of fun :)

You have a good definition of fun, I like that.

If you haven't seen this already, it might be something you'll like.
You can avoid having to type in the full remote URL when you do a
push, pull, fetch, etc by using the git remote command (or just
editing the git config file) in a repository.  Say I want to push and
pull from a repo fairly often, in my working repo I could run
something like this:

    # Add an 'fp' remote to save some typing
    $ git remote add fp ssh://fedorapeople.org/~tmz/public_git/some.git

    # List the configured remotes and their URLs
    $ git remote -v
    fp      ssh://fedorapeople.org/~tmz/public_git/some.git

    # Push my master branch to fedorapeople.org
    $ git push fp master

You can have many remotes configured, making it easy to push and pull
between a bunch of people.

The bash completion shipped with git will even complete these remote
names for me, allowing me to avoid yet more typing (at the expense of
my poor tab key).  Using that, perhaps you could generate the git
remote lines for your users, to help make their pushes easier to read
and type.

-- 
Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The nice thing about egotists is that they don't talk about other
people.
    -- Lucille S. Harper

Attachment: pgpmKFnqe3Qv1.pgp
Description: PGP signature

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux