LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Which git? (https://www.linuxquestions.org/questions/slackware-14/which-git-4175510290/)

turboscrew 07-06-2014 12:37 PM

Which git?
 
Which git-package you would recommend for "real work"?
That is: not just getting SW to install, but to do co-operative SW development.
It wouldn't do exactly harm if it could handle some other kinds of repos too (hg, SVN, ...).

dugan 07-06-2014 12:44 PM

You mean which git frontend, right? Slackware includes git.

I like fugitive.vim for vim.

Egit for Eclipse is also not bad.

I'm not aware of git frontends that handle other repository types, and I can't imagine them being any good.

turboscrew 07-06-2014 12:58 PM

Quote:

Slackware includes git.
Whoa - didn't realize. Thanks.
I'll probablt try out Egit at some point.

Any comments about smartgit/hg?

pan64 07-06-2014 01:33 PM

git is a general tool, egit and smartgit/hg look specialized. I would rather say you need to check if those tools suit your needs. (for example egit can help you only if you use eclipse). I suggest you to be familiar with git itself not only just with some GUI frontends. Also you can try gitk. Probably you need to check gerrit too.

turboscrew 07-06-2014 01:49 PM

Quote:

Originally Posted by pan64 (Post 5199584)
git is a general tool, egit and smartgit/hg look specialized. I would rather say you need to check if those tools suit your needs. (for example egit can help you only if you use eclipse). I suggest you to be familiar with git itself not only just with some GUI frontends. Also you can try gitk. Probably you need to check gerrit too.

I have mostly used git and git-gui (or git gui these days).
My experience with hg on the other hand is pretty limited.
I just have the itch that I might come across hg and SVN in the future (used "torture svn" however).

I'm interested in Egit, because I use eclipse often - just never tried Egit.

Didier Spaier 07-06-2014 02:25 PM

mercurial and subversion are indeed included in Slackware as well as git. For eclipse and netbeans see http://slackbuilds.org

Richard Cranium 07-06-2014 02:36 PM

Netbeans contains native support (well, via plugins) for git, svn, and hg.

There are usage patterns in git that don't map to other DVCS usage patterns.

turboscrew 07-06-2014 02:40 PM

Quote:

Originally Posted by Didier Spaier (Post 5199597)
mercurial and subversion are indeed included in Slackware as well as git. For eclipse and netbeans see http://slackbuilds.org

Oh, Looks like I don't need to install anything!
Thanks!

turboscrew 07-06-2014 02:42 PM

Quote:

Originally Posted by Richard Cranium (Post 5199598)
Netbeans contains native support (well, via plugins) for git, svn, and hg.

There are usage patterns in git that don't map to other DVCS usage patterns.

Thanks. At the moment eclipse is closer to my heart, but netbeans might come along later.

astrogeek 07-06-2014 06:48 PM

Be sure to add git auto-completion to your shell:

For bash...

Code:

cp /usr/doc/git-1.8.4/contrib/completion/git-completion.bash /etc/bash_completion.d/.

Add to /etc/bashrc or ~/.bashrc

source /etc/bash_completion.d/git-completion.bash

Scripts also available for ksh, zsh and tcsh in /usr/doc/git...

turboscrew 07-07-2014 04:26 AM

Quote:

Originally Posted by astrogeek (Post 5199674)
Be sure to add git auto-completion to your shell:

For bash...

Code:

cp /usr/doc/git-1.8.4/contrib/completion/git-completion.bash /etc/bash_completion.d/.

Add to /etc/bashrc or ~/.bashrc

source /etc/bash_completion.d/git-completion.bash

Scripts also available for ksh, zsh and tcsh in /usr/doc/git...

Sounds cool... :-)

Martinus2u 07-11-2014 04:34 PM

Quote:

Originally Posted by pan64 (Post 5199584)
git is a general tool, egit and smartgit/hg look specialized. I would rather say you need to check if those tools suit your needs. (for example egit can help you only if you use eclipse). I suggest you to be familiar with git itself not only just with some GUI frontends. Also you can try gitk. Probably you need to check gerrit too.

I agree, with all those seemingly helpful tools I've always run into issues eventually and gone back to the command line. Btw, you can say "git gui" on the command line and get a graphical tool (try Repository -> Visualize HEAD's history).

turboscrew 07-11-2014 06:37 PM

Quote:

Originally Posted by Martinus2u (Post 5202496)
I agree, with all those seemingly helpful tools I've always run into issues eventually and gone back to the command line. Btw, you can say "git gui" on the command line and get a graphical tool (try Repository -> Visualize HEAD's history).

I have mosty used those.

Richard Cranium 07-11-2014 08:10 PM

Quote:

Originally Posted by Martinus2u (Post 5202496)
I agree, with all those seemingly helpful tools I've always run into issues eventually and gone back to the command line. Btw, you can say "git gui" on the command line and get a graphical tool (try Repository -> Visualize HEAD's history).

It's really too bad that (AFAICT) absolutely NONE of the people that wrote (I will not say "designed") the git command line interface had the faintest idea on how to write a user interface. It looks like they fed a bunch of perl users a load of crack and told them to go at it.


All times are GMT -5. The time now is 09:43 PM.