AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   Good material for learning Git (https://forums.alliedmods.net/showthread.php?t=247297)

Backstabnoob 08-30-2014 09:59

Good material for learning Git
 
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/

fysiks 08-30-2014 14:34

Re: Good material for learning Git
 
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.

Mitchell 08-30-2014 14:55

Re: Good material for learning Git
 
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.

Arkshine 08-30-2014 14:56

Re: Good material for learning Git
 
Annoying on what? Elaborate. Just curious!

Backstabnoob 08-31-2014 07:44

Re: Good material for learning Git
 
Imo Git is a powerful tool, but the command syntax is a complete mess.

Powerlord 08-31-2014 13:09

Re: Good material for learning Git
 
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.


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

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.