Sync Git master with fork

I recently had to fork a branch in github and then I had to figure out how to keep the changes from the master in sync with the fork branch I had made. Turns out it is really simple. ...

April 10, 2015 · 1 min

Remove Git Repo Configuration and History

Step 1: Remove all history rm -rf .git Step 2: Reconstruct the Git repository git init git add . git commit -m "Initial commit" Step 3: push to GitHub. git remote add origin <github-uri> git push -u --force origin master

August 12, 2014 · 1 min

Learning Git

When writing software you are, very quickly, going to run into the need to have some form of source control. It is just inevitable. You might start off, on your own, creating copies of your files in different folders- the poor man’s version control. Very soon you will make changes and think “crap!”, wishing you could revert back to yesterday, or two days ago. But it is too late, there is no history. There isn’t much of anything - except your last saved version and your 3 month old deployed version. You need some control. Source Control in fact. ...

July 21, 2013 · 7 min