We select and review products independently. When you purchase through our links we may earn a commission. Learn more.
X
X
The Best Tech Newsletter Anywhere

Join 425,000 subscribers and get a daily digest of news, geek trivia, and our feature articles.

How to Remove a Commit From Github

If you accidentally committed something you shouldn’t have, and pushed it to Github, there are still ways to delete or modify it. Usually, you don’t want to mess with Git’s history, but in some cases it can be safe when done …

Should You Use HTTPS or SSH For Git?

When connecting to remote Git repositories like Github, you usually have two connection options—HTTPS or SSH. Both have their uses, and while SSH is generally considered more secure, the question is a little more complicate…

How to Move Changes to Another Branch in Git

While Git keeps track of your day to day changes, it also features systems like branches that help you organize. If you’re not careful though, you can end up with problems like commits and changes made to the wrong branch, th…

How To Properly Fork a Github Repository

Open source programming is all about being able to make your own changes to code others have written. To do that, you must branch off from the main repository, commonly called “forking” the repo, but it can be complicated if …

Where Does Docker Keep Log Files?

Debugging most Linux programs usually involves checking log files, which can be a complex process. When running in a containerized environment under Docker though, you’ll need to use more specific tools to debug apps in produ…

How to Switch, Add, and Remove Git Remotes

Git is a decentralized version control system, which means your local repo is the same thing as the remote repository on a site like Github. When you need to push or pull changes, you must do so using a Git remote….

How to Set Up .gitignore As a Whitelist

The .gitignore file is a crucial part of any Git repository; it prevents unwanted files from being tracked and shared in source control. Usually, you want to ignore certain files and folders, but sometimes it’s easier to do i…

How to Copy Directories Recursively with scp

A common problem when working with files is applying operations recursively, or to every sub-directory in the entire folder. The scp utility is used to transfer files and directories to remote servers, and supports recursive…
How-To Geek is where you turn when you want experts to explain technology. Since we launched in 2006, our articles have been read more than 1 billion times. Want to know more?