Articles about github

Helping you solve those tough coding problems since 2009!

Finding Deleted File with GitHub

Published on Jul 24, 2022

Using git log to find a deleted file. This will tell you how to find when a file was deleted git. Read on for the 3 steps to get with git find commit that deleted file.

Git pull rebase recovery

Published on Apr 15, 2019

Using git pull --rebase is a great way to avoid those awkward looking commits of Merge branch 'development' of in the list of commits. Very difficult to read the actual deltas. Performing a Git rebase helps solve this. However, from time-to-time I've received conflicts and could not figure out how to fix the rebase and carry on. Scariest moments of my life. Luckily I've been able to recover from this.

Merge one or more Git commits into a different branch

Published on Apr 1, 2019

Problem

You have a commit that you want to move from one branch to the other. This is commonly required when there are additional commits in the branch where your commit is, so you are unable to merge the entire branch.

Solution

Git - Squashing multiple commits into one when merging a branch

Published on Mar 3, 2019

When you are using Github, it's quite common to branch your work while working on a feature. Many times your branch contains a lot of small commits that when you merge it into your main branch you want a single commit message describing the full work in that branch.

Git offers a handy command called git merge --squash [your-branch]. This is then a followed by a regular git commit and git push.

Cloning or Checking out a repository with GIT

Published on Feb 15, 2019

You have your own GIT repository or you wish to checkout a copy of a publicly or privately available repository to your computer.

To checkout or as GIT calls it, clone, a repository the git clone command. This command accepts many different arguments. In your command line, type: git help clone for the full supported list.

posh-git: the only GIT command line tool I use

Published on Feb 13, 2019

Tutorials

Learn how to code in HTML, CSS, JavaScript, Python, Ruby, PHP, Java, C#, SQL, and more.

No matter the programming language you're looking to learn, I've hopefully compiled an incredible set of tutorials for you to learn; whether you are beginner or an expert, there is something for everyone to learn. Each topic I go in-depth and provide many examples throughout. I can't wait for you to dig in and improve your skillset with any of the tutorials below.