alexkras.com

  • Home
  • Top Posts
  • Resume
  • Projects
  • YouTube
  • Boots to Bytes
  • About
  • Contact

Git – Merge Two or More Repositories Together and Keep History

April 7, 2019 by Alex Kras 2 Comments

Here are the steps that I too to merge multiple GitHub repos into one, while preserving all commit history. The process took about 30 minutes for 5 repos. As a result, I feel like my GitHub page is cleaner and code is actually better organized and easier to find. TLDR: Create new repo (or use […]

Filed Under: Git

Private Git Repository on Any Computer

March 3, 2017 by Alex Kras 1 Comment

With popularity of Github and many other competing offerings, it’s easy to overlook how simple it is to set up (unlimited) private repos on any network connected computer. For example, I run this blog on a cheap instance of Linode, where $5 a month get’s you 20Gb SSD storage. But you don’t have to pay […]

Filed Under: Git Tagged With: git

How to use git log command line parameters

February 3, 2017 by Alex Kras Leave a Comment

Git comes with a very power history viewing command – git log, which supports a number of command line parameters. This options are very powerful, especially when used in combination. Here are the ones that I use the most: –author=“Alex Kras” – Only show commits made by a certain author –name-only – Only show names […]

Filed Under: Git Tagged With: git

Git grep multiple repos at once

October 25, 2016 by Alex Kras 2 Comments

Updated in 2020 to work with Python 3. My company uses multiple git repos that all depend on one another. Often I find myself trying to grep through a few of them at the same time. Regular grep works, but it takes a long time and displays a lot of noise. git grep only searches […]

Filed Under: Git, Tools Tagged With: git

Generate Weekly Reports from Your Git Commits

August 13, 2016 by Alex Kras 2 Comments

My current work requires me to submit weekly reports and so did some other jobs that I’ve had in the past. To help with that task, I wrote the following script that: Goes through every one of my git repos Checks if I’ve made any commits in the past week If I did, prints the […]

Filed Under: Git, Tools Tagged With: git

How to Add Git Auto-Completion for the Command Line Tools in Mac OS X

July 14, 2016 by Alex Kras Leave a Comment

Git supports auto-completion when used via the terminal, which includes all basic commands such as git status or git checkout as well as local and remote branch names etc. It comes pre-installed on Ubuntu, but a few simple steps (bellow) have to be followed to get it working on Mac. Open up your terminal app […]

Filed Under: Git, Tools

Git Mind Map

May 3, 2016 by Alex Kras 2 Comments

I’ve been cleaning out my old computer and came across a git mind map that I’ve used to put together this Git Cheatsheet. Both are aimed towards beginners. If you are an intermediate Git user, you might find 19 Tips For Everyday Git Use to be more interesting. I’ve thought that some people might prefer […]

Filed Under: Git, Uncategorized

19 Git Tips For Everyday Use

September 8, 2015 by Alex Kras 71 Comments

Update: You can now get this post on Kindle. I’ve been using git full time for the past 4 years, and I wanted to share the most practical tips that I’ve learned along the way. Hopefully, it will be useful to somebody out there. If you are completely new to git, I suggest reading Git […]

Filed Under: Git Tagged With: git

Git Cheat Sheet

March 10, 2015 by Alex Kras 19 Comments

View it on GitHub

Filed Under: Git

Delete Fork Dependency of a Repository on Atlassian Stash or GitHub

May 30, 2014 by Alex Kras Leave a Comment

A colleague of mine forked a repo on Stash, just to re-use configuration. A better way of doing things would be to clone the original repo, keep the necessary config/setup files, delete .git folder, and re-initialize the new repo from scratch. In our case, we only noticed the fork about a week into the project, […]

Filed Under: Git, Tools

Copyright © 2021 · eleven40 Pro Theme on Genesis Framework · WordPress · Log in