Git – Page 2 – POFTUT

How To List Commit History with Git Log Command with Examples?

Git source code versioning tool provides a lot of features. One of the most important and useful features is log or history. We can use git log command in order to list, filter, view commit history in different ways. In this tutorial we will examine git log command usage in detail with examples. List Commit … Read more

How To Create and Manage New Branch with Git?

Git branch mechanism is an important part of the code versioning. We can create new branches in order to make the same source available multiple development paths. In this tutorial, we will learn how to create and manage a new branch with Git. List Branches We will start by listing the current existing branches. We … Read more

How To List Local and Remote Git Branches?

Git branches provides very useful way to work with a project in multi developer mode. Every developer can use different or his branch to implement new features and then merge them into a main branch. In this tutorial we will learn how to list and print branch information.These branches can be local or remote too. … Read more

How to Install Git on Linux, Mac, or Windows?

How to Install Git on Linux, Mac or Windows?

Git is a tool and concept developed by Linux Torvalds. Git is a free and open-source distributed version control system. It has a tiny footprint with lightning-fast performance. It is a very good alternative to the SVC, SVN, or similar version control systems. It is mainly used by software developers in order to control different … Read more

Error: Permission denied (publickey) and Solution

ssh or similar applications use Public and Private Key mechanism in order to authenticate and authorize given users. We have all ready examined Key based authentication and authorization in previous tutorials. Permission denied(public key) error is generally occurs for can not reading Public and Private key properly to authenticate to remove server. In this tutorial we … Read more

CMake Tutorial To Build and Compile In Linux

CMake Tutorial To Build and Compile In Linux

Binaries are created by building or compiling sources like C, C++, etc. In simple applications, we can build by using the compiler like GCC directly. But this is inconvenient if the application is big and has a lot of source code, configuration file, and build options. Developers generally prefer to build systems like make but … Read more

Git – Ignore Files To Prevent Commit

Git - Ignore Files To Prevent Commit

Git is used for a lot of different projects. These projects may provide different types of files. Some times some of those files should not be committed into the repository. For example, after running a python application pyc files are created as compiled python files. Committing them are unnecessary. Git Ignore File To ignore files the patterns … Read more

Git – File Operations

Normal file operations like deleting, moving, changing file name can be done in git. Removing File A tracked file can be removed liked below. $ git rm LICENSE   rm ‘LICENSE’ $ git status On branch master Changes to be committed:  (use “git reset HEAD <file>…” to unstage)        deleted:    LICENSE rm removes file After remove operation … Read more

Git – Reviewing Changes

Git stores all commits as snapshots. We can commit limitless. If we can to review our commits we can use log command. Git Log We can simple list commits without any argument tot the log command. $ git log commit 877ab08a2c122c70326bb025530e48cb673c8505 Author: John Doe <jdoe@poftut.com> Date:   Sat Oct 8 04:23:46 2016 +0000    Version 4,Added LICENSE commit 22dc9ad592d5bc21412a246791a05abd42e72793 … Read more