Category: Git

0

Cmake Tutorial To Build and Compile In Linux

Binaries are created by building or compiling source 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 have a lot of source code, configuration file and build options. Developers generally prefers build...

0

Git – Branching Operations

Branches are new lines of the current development line. Branches creates new work spaces different from current and changes can be done without affecting current and other branches. After these changes generally branch will merge with the main branch. For example we want to add new feature. To code the...

0

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 in to the repository. For example after running a python application pyc files are created as compiled python files. Committing them are unnesecary. Git Ignore...

0

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.

rm removes file After remove operation and commit the file will be not tracked and exist for the future commits but exist in the history. If...

0

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.

As we see there are 3 commits for the whole history of the Git repository....

0

Git- Clone Operations

We have all ready a repository. Other developer Ken wants to join our project and give code support. How can we do that with with Git. Git have clone mechanism to copy existing repository easily.

As we see we have cloned it with clone command. /home/john/myproject/ is the path...

0

Git – Committing Changes To The Repository

Previous chapter we have created our new clean repository but we did not added any code. In this chapter we will add some code and create some revision or versions of the code. Getting Status of Repository As we stated before we have a clean repository we can check this....

0

Git – Creating Repository From Scratch

In this chapter we will create users those will be use Git. Create an Git repository and add some code. Create Users for Git To use git we need some system users. If we have allready this users we can skip this but if not we will create new users....

0

Git – Environment Setup and Basic Configuration

Installing git is easy with operating system provided packages like apt or dnf. We can track here Fedora way with dnf but it is very similar for other operating systems like CentOS, Debian, Ubuntu etc.

First-Time Configuration After installing git making some configuration will make usage of the git...

Enjoy this blog? Please spread the word :)