[Gambas-user] About learning Git
Christof Thalhofer
chrisml at deganius.de
Fri Feb 9 11:47:56 CET 2018
Hello,
when I switched over from SVN to Git, I saw: Git is a strange, different
beast. I had to change things in my mind, how to work with a version
control system which is so different like this. Here are the sources,
which helped me to learn and also the tools that work best for me:
I highly recommend the great documentation here:
https://git-scm.com/doc
especially the Git book:
https://git-scm.com/book/en/v2
which is fully translated in French, German and other languages.
I have learned also from a couple of videos, first of all the
introduction by Linus, its brilliant, even when its controversial:
https://www.youtube.com/watch?v=4XpnKHJAok8
There are also a lot of good videos in Youtube about "Git best
practices", for instance these tutorials may be worth to be watched:
https://www.youtube.com/watch?v=HVsySz-h9r4&list=PL-osiE80TeTuRUfjRe54Eea17-YfnOOAx
-------------------------------------------------------------------
As you may find out that most of the examples in the internet praise the
usage of Git from the commandline and not GUI tools:
Git is best understood while working in the terminal and it is ultrafast
and very mighty there. I for myself never use a GUI tool, and after a
bit of work with Git, I bet, you won't too.
So these are my tips for working on the commandline:
Use a tool like Guake (sudo apt install guake) which provides the
terminal with one keystroke and switches it off with the same key.
Use Zsh instead of Bash.
Then use https://github.com/robbyrussell/oh-my-zsh/
It provides autocompletion and a lot of very cool shortcuts for the work
on the terminal and also provides a beautiful informative prompt like
this (imagine the colors by yourself):
christof at tof-x230 ~ » wd gambas
christof at tof-x230 ~/programming/gambas/gambas ±master »
I write
"g l <tab>" instead of "git log"
"gl" instead of "git pull"
"gp" instead of "git push"
For staging and committing I use tig
https://www.atlassian.com/blog/git/git-tig
which is in Ubuntu (sudo apt install tig)
Alles Gute
Christof Thalhofer
--
Dies ist keine Signatur
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180209/09fe08b0/attachment.sig>
More information about the User
mailing list