Git resources: Git explained by humans, for humans

Good Git structure overview

Structuring your Git upfront can save you a lot of headaches with you and your team later.  Here’s an overview of a great article to help you get your team back to the basics and set a new baseline from which to start relying on Git more effectively as a team.

Git pull rebase explained by humans, for humans

Here are a couple of posts explaining pulling with rebase and the difference between merging and rebasing.  You may want to read them a few times and try them out on your on repositories to get the hand of the best time to rebase and merge.

http://gitready.com/advanced/2009/02/11/pull-with-rebase.html

https://www.atlassian.com/git/tutorials/merging-vs-rebasing/

Git Submodules explanations

http://julienrenaux.fr/2014/08/05/how-to-use-git-submodules-to-facilitate-your-development-routine/

https://confluence.atlassian.com/sourcetreekb/adding-a-submodule-subtree-with-sourcetree-785332086.html?continue=https%3A%2F%2Fconfluence.atlassian.com%2Fsourcetreekb%2Fadding-a-submodule-subtree-with-sourcetree-785332086.html&application=cac

Video:

https://www.youtube.com/watch?v=sabx_jxdzTQ&nohtml5=False

Git pruning branches explanation

Learn more about pruning your Git branches.  Here’s another good article here.

Git push

If Git couldn’t be more confusing with forcing a push, try this “safer” one:

git --force-with-lease

Here’s an explanation about “forcing with a lease” which sounds more like an early 20th century slum-lord tactic than something a web developer would have to do with their code repositories.

To remove any file matching  a wildcard, since many git command lines don’t support wildcards like the command line:

Where “error_log” is the file name or part of the file name:

find . -name error_log | xargs git rm -r 

Reverse and Stage Hunks

I couldn’t resist, after all, Source Tree has been helpful for many developers maintain and find their way around multiple projects with multiple repositories because it can be confusing if you are just using Git on the command line.  You may be too cool to not use Git on the command line, you have to keep up your street cred, but this just helps you see the forest and the trees faster than typing a bunch of git on the command line.  I have better things to do.

Atlassian provides a lot of help on there, site, click here to learn about “hunks” and you’ll also learn why Git is still growing and has a lot of room for improvement.

About Author:

Senior Cloud Software Engineer and 25+ years experienced video production, video editing and 3D animation services for a variety of global clients including local video production here in Jacksonville, Florida.

Leave a Comment

Your email address will not be published. Required fields are marked *