Advantages of SVN over Git

To be clear, I am happy with using both SVN and Git and use whichever one is most appropriate as each have their advantages. However, I feel it's worth making this post as there seems to be a bit of a git bandwagon where people just disregard SVN. Forced Collaboration…

Read this article

Git - Move Recent Commits To A Branch

Today I will show you how to perform the following change to your git repository: AABBCCDDMasterMasterNew BranchNew BranchAfter[Not supported by viewer]AABBCCDDMasterMasterBefore<h2><b>Before</b></h2> You may need to do this if you created a new branch, but forgot…

Read this article

Pretty Git Logs

If you want to see a graph of your commit log, then I recommend that you use the following command: git log \ --abbrev-commit \ --oneline \ --all \ --graph \ --decorate \ --color Executing it should give you output similar to below: Now you can see the flow of the changes and easily spot where…

Read this article

Deploy GitLab Through Docker

Deploying Gitlab through docker has become a lot simpler than it used to be. Requirements At least 2GB RAM, preferably 3+ Steps If you haven't already, install docker, then install docker compose. Next, we need to change the server's SSH port from the default 22 to something else such as…

Read this article

Ubuntu - Configure Git to Use Meld for Diffs

By default, git will show you diffs in the CLI in a single view, rather than split view. I'm not elite enough to be able to work this way. This tutorial will show you how to configure git to make use of meld to have a split-pane view of your…

Read this article

Git Cheatsheet

Below is a cheatsheet for Git so we don't become like the guys in this comic: Image courtesy of xkcd Commands Similar Commands To SVN These commands just need to be prepended with git, instead of svn: commit add diff log status Differences mv instead of move rm instead of…

Read this article

Debian 8 - Create A Private Centralized Git Server

Install Git sudo apt-get update sudo apt-get install git -y Creating Our Users and Repos Any user that is going to be allowed to use our repositories needs to be a user in our system. The easiest way to add a user is with this command: sudo useradd [username] Our…

Read this article

Github - Push A Single Change Upstream (Pull Request)

After forking a repository on Github, if you make a change that could benefit the original source, then you need to create a "pull request". However, you may not want to push them all of your changes, just one of the latest ones. To solve this issue, follow the steps…

Read this article