Raised This Month: $114 Target: $400
 28% 

Good material for learning Git


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 08-30-2014 , 09:59   Good material for learning Git
Reply With Quote #1

I needed to learn how to use Git for my PHP job I'm starting on Monday. It all felt a bit confusing to me, but I found an awesome guide which interactively teaches you how to use Git, what the commands do as well as a graphical interface which makes it all super clear.

http://pcottle.github.io/learnGitBranching/
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-30-2014 , 14:34   Re: Good material for learning Git
Reply With Quote #2

I found that Github is annoying to use. Hopefully you aren't using that (since I'm assuming your job won't be open source code). It is quite different from SVN which is what I'm used to.

Maybe after I use it more, it will become better.

P.S. I don't think I can use that tutorial because it looks like a Mac.
__________________

Last edited by fysiks; 08-30-2014 at 14:35.
fysiks is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 08-30-2014 , 14:55   Re: Good material for learning Git
Reply With Quote #3

If you are coming from svn to git you will have a much more learning curve from just learning what git is from scratch. Let me see if i can find some of the material i used for learning Git when i started working at my job. (I previously never learned anything about source control previously so I started from scratch.)
I didn't find the interactive tutorials very good.
Few tips i learned (took a class a few days ago "Getting Git")
• Sourcetree is a good Git GUI, extremely nice to remove having to type the commit message in the command line. ALthough learning the commands is good too, expecially when you can do a ton more things in the command line than sourcetree offers.
• Never Forcepush, if it tells you that your push would re-write history and you had already push some code out that it effects, DO NOT FORCE PUSH A NEW CHANGE that will screw up history. You could either erase some one elses code and/or give them a bad

Theres a few more things i learned but it would be difficult to share on a forum. Most of the resource i learned from was on an intranet site.

The class also pointed out this site too: http://gitimmersion.com/

GitHub is probably the most powerful Git site, setting up permissions for Git is a bit of a fluster and a pain. Most likely if they company you are working with is big, and has a infrastructure they will have some kind of licence with GitHub, or some kind of git site. If they are a smaller job they you most likely will have some kind of server and wouldnt use any kind of website to look at the code externally.

Last edited by Mitchell; 08-30-2014 at 15:00.
Mitchell is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-30-2014 , 14:56   Re: Good material for learning Git
Reply With Quote #4

Annoying on what? Elaborate. Just curious!
__________________
Arkshine is offline
Backstabnoob
Veteran Member
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 08-31-2014 , 07:44   Re: Good material for learning Git
Reply With Quote #5

Imo Git is a powerful tool, but the command syntax is a complete mess.
__________________
Currently busy working on a very large scale anime database project.
Backstabnoob is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-31-2014 , 13:09   Re: Good material for learning Git
Reply With Quote #6

I've never had issues moving from SVN to Git. In fact, I still use the former (via TortoiseSVN) at work and the latter (via TortoiseGit) for my SourceMod stuff.

The only time you should use force push is if you need to roll the entire branch back to a previous commit and erase all the future commits. i.e. you really screwed something up like merging branches in the wrong direction (Tip: merges are done from the branch you're merging to).

Biggest change to remember: You need to remember to push your work back to the central repo if you want other people to see it.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:19.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode