Categories
git

Git Tutorial Part 3: Ignoring Files (Gitignore)

Git Ignoring Files In most projects we have a set of files that we do not want to track these are usually logs or compilation or runtime files. In these cases we make use of: .gitignore To create a file listing to match the files we don’t want to track: cat .gitignore *.[oa] *~ This […]

Categories
git

Git Tutorial Part 2: Repository, Cloning, Tracking and Staging

This article gives the basics for a beginner user who needs to start tracking and contributing to projects managed with git. The Git Repository Initialising from an existing directory git init This command creates the .git directory.At this point nothing is tracked though. git add * git add README git commit -m ‘Initial Commit’ Cloning […]

Categories
git

Git Tutorial Part 1: Git Configuration

This Git Config Basics Tutorial will help you find out how configuration works and how you can configure your git Types of Configuration System Wide: This configuration file is found at: /etc/gitconfig. This contains the default values for all users on the system. git config –system Global/Per User: Found at: ~/.gitconfig. This is the configuration […]

Categories
git

How to remove a tracked file after a .gitignore update

git update-index –assume-unchanged source: stackoverflow

Categories
git

Change Git Username and Email

This is a Tutorial: Change Git Username and Email These instructions are given to you when you first commit with git. Just btw. git config –global user.name “Your Name” git config –global user.email you@example.com Afterwards type: git commit –amend –reset-author