Author: Ryan Sukale

0

Revert many commits in git

Logically speaking, the simplest way to revert several commits in git without losing commit history is by creating a new commit that represents the revert. Note that its NOT a good practice to revert...

0

Export your git branch to a zip folder

Today I found myself in a situation where my git host was down and I wanted to share my project with a colleague. The easiest way to do so is to use the git...

0

What is a git bare repository and when to use it

A lot of times, I see questions about the difference between an ordinary git repository and a bare git repository. So I decided to quickly made up picture of the actual difference, you know the...

0

Rename a remote url in git

When collaborating with others, you might be using multipe remotes. I found this useful for setting up an automatic delpoyment system where i setup a remote called ‘deploy’ which I can push to deploy....

0

Create a new branch from your git stash

Sometimes when you have a tonne of changes you realize that you probably want to keep all of them in a new branch instead of as a new commit in the current branch. Normally...