Basics

This post will describe how to create a shell script to check a git repository status every so often to check for changes.
Why would you write something like this? Whilst Git is primarily used to version control files and improve developer’s and development team’s workflow, it can also be used as a security measure …

In order to collaborate with other users on a Git project, you should have an understanding on working with remotes in Git. Remote repositories are repositories that are hosted externally, most likely on the Internet. There are popular websites that provide this hosting service, such as Github and Bitbucket.
Essentially, the idea is that so …

A gitignore file is used to specify files that you want Git to intentionally ignore. Using gitignore has several advantages, the main one advantage being that you can prevent sensitive information, such as database credentials or other configuration files, from being accidentally committed.
The .gitignore file is usually placed in the working directory, or the …

You can set various Git configuration options within your repository. This configuration option list can be viewed by running the git config command, passing in –list as an option.
$ git config –list
You can then set a configuration option by typing git config [option] [value].
Set the Git username
To set the Git username, …

When multiple developers are working on a project version controlled using Git, there may be occasions where conflicts between modifications to the same file occur. Resolving Git merge conflicts requires human activity to choose which of the changes to keep or discard.
To demonstrate this in action, let’s assume that two developers, Developer A and …

When working on a project using Git, there may be occasions where you’ll need to save your local modifications for later. This is where the git stash command can be used.
Imagine you’re working on a feature branch that will add some functionality to your project. All of sudden you need to work on a …

Git is a distributed version control system and is one of the most used version control systems that is used today.
The major difference between Git and any other VCS is that Git takes a picture of what all your files look like at that moment and stores a reference to that snapshot. On …