Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Create and remove the branch on GIT

Create and remove the GIT branch : Branching is the feature of GIT, which is needed when you want to add new functionality in your application without being changed to old version. So you need to create a branch which will be copy of your last ve...

error: Unable to append to .git/logs/refs/heads/dev: Permission denied fatal: Cannot update the ref 'HEAD'

Hello Friends,   When you are working with GIT sometimes face this kind of error "error: Unable to append to .git/logs/refs/heads/dev: Permission denied fatal: Cannot update the ref 'HEAD'.", while taking update from ...

error: cannot open .git/FETCH_HEAD: Permission denied

Hello Friends, If you are trying to take PULL request from server and facing this issue "error: cannot open .git/FETCH_HEAD: Permission denied". Please use the below command to fix this issue: chmod a+rw .git/FETCH_HEAD I hop...

Failed to resolve HEAD as a valid ref In GIT

Sometimes Many of us have encountered an error mentioned below: fatal: Failed to resolve HEAD as a valid ref. This Situation might occur for various reasons (file corrupt, file override, etc).   Solution: How, we resolve this ...

How to ignore specific files in git ?

Git is a version control system which keeps the track of changes made in the source code. There are many times, we do not want to upload the credentials file on git because those will be visible to all the stakeholders. Also, there are many files...

Edit most recent Commit Message

Hi, Committing is a way in GIT, that adds changes to the repository history and assigns a understandable commit name to it. If by mistake one added a wrong commit message and want to edit it, he can use the below command: git commit --ame...

Undo Changes in git

Previous Git Blogs 1. Intialize git repostiory 2. First Commit 3. Two tree architecture and Three tree architecture 4. Best basic practices for writing commit messages 5. Viewing the commit logs 6. Git Basic WorkFlow 7. What is HEA...

Git Diff and add commit in one shot

Previous Git Blogs 1. Intialize git repostiory 2. First Commit 3. Two tree architecture and Three tree architecture 4. Best basic practices for writing commit messages 5. Viewing the commit logs 6. Git Basic WorkFlow 7. What is HEA...

Pictorial Representation of basic Git flow

Modify files in the working directory. gedit test.txt Stage the files, adding snapshots of them to your staging area. git add -U Commit, takes the files as they are in the staging area and stores that snapshot permanently to th...

Staging changes as multiple commits

Previous Git Blogs 1. Intialize git repostiory 2. First Commit 3. Two tree architecture and Three tree architecture 4. Best basic practices for writing commit messages 5. Viewing the commit logs 6. Git Basic WorkFlow 7. What is HEA...

Git Config, Add, Commit, View, Diff summary

Previous Git Blogs 1. Intialize git repostiory 2. First Commit 3. Two tree architecture and Three tree architecture 4. Best basic practices for writing commit messages 5. Viewing the commit logs 6. Git Basic WorkFlow 7. What is HEA...

Viewing history and diffs

Previous Git Blogs 1. Intialize git repostiory 2. First Commit 3. Two tree architecture and Three tree architecture 4. Best basic practices for writing commit messages 5. Viewing the commit logs 6. Git Basic WorkFlow 7. What is HEA...

Updating a file and adding it to repository

Previous Git Blogs Intialize git repostiory First Commit Two tree architecture and Three tree architecture Best basic practices for writing commit messages Viewing the commit logs Git Basic WorkFlow What is HEAD pointer in GIT Git...

Viewing history

Previous Git Blogs Intialize git repostiory First Commit Two tree architecture and Three tree architecture Best basic practices for writing commit messages Viewing the commit logs Git Basic WorkFlow What is HEAD pointer in GIT Git...

Git Configuration

Previous Git Blogs Intialize git repostiory First Commit Two tree architecture and Three tree architecture Best basic practices for writing commit messages Viewing the commit logs Git Basic WorkFlow What is HEAD pointer in GIT ...

What is HEAD pointer in GIT

Previous Git Blogs Intialize git repostiory First Commit Two tree architecture and Three tree architecture Best basic practices for writing commit messages Viewing the commit logs Git Basic WorkFlow Git SHA-1 Git maintain...

Git SHA-1

Previous Git Blogs Intialize git repostiory First Commit Two tree architecture and Three tree architecture Best basic practices for writing commit messages Viewing the commit logs Git Basic WorkFlow In the last Blog Git Basic ...

Git Basic WorkFlow

Previous Git Blogs Intialize git repostiory First Commit Two tree architecture and Three tree architecture Best basic practices for writing commit messages Viewing the commit logs To keep things simple I am using only one file...

Two tree architecture and Three tree architecture

Two-tree architecture Is used by lot of other version control systems . In this we have a repository and a working copy, our working copy begins with the top of our project directory and below of that might be one or thousands of fil...

Viewing the commit logs

Previous Blogs Intialize git repostiory First Commit Now viewing our past commit logs we do with git log, and this will show us the log of commits that have taken place till now. naveen@naveen:/var/www/html/RND/symfony_sites/s...

Best basic practices for writing commit messages

In my last blog we did our first commit, and we gave it a really simple commit message that was just initial commit. it doesn't really describe what we were doing and where we left. we must commit message that describes the changes...

commiting a first file using git

As we have initialize here our first project we are now ready to make our first commit. Check the status naveen@naveen:/var/www/html/RND/symfony_sites/symfony_todoapp$ git status Git will show the message On branch master Initia...

How Git store its files

In my Last Blog (init git) I mentioned how to initialize git repository, Now lets see what git init did and also understand where git stores its files to do version control on our project. On terminal use the UNIX ls command to list what's ...

Initializing Git

once you have Git intalled and configured the next step is to initialize Git. It basically telling git to start tracking things in a project git init /* command to tell Git to initializie the project to get everything ready to start doing i...

Create and remove GIT Remote branch

Create and remove remote branch on GIT : As we know that the git is used to collaborate between team. Developers can share the code using git by sitting anywhere on this word, for this the code should be exist in a central repository which is acc...

How to use git client for pushing and pulling the changes?

There are many git client that are used for pulling and pushing the changes made in the remote/local repository. Some of the Git Clients that are used to manage projects remotely for Linux platform are as below: git-cola (free) SmartGit...

Get all modified files of all commits in a branch

We can check the modified files of a branch using: git status But it will list all those files which are not committed. Once these will be committed "git status" will not list these files. For this we can use following command which will ...

Get history of an individual branch in GIT

If you want to get history of your git repository then you can use simply: git log This will return you all commits. If you want to check changes made in a particular commit then you can use: git show "SHA-1 key" SHA-1 is you c...

Change the URI of remote repository

Reset the remote URL : Git provides the ' git remote set-url ' command to reset the remote URI.The other way to reset the remote URI is first delete the current URI and then again use git remote add command. Following is the syntax of change the...

Renaming a remote

Rename the existing remote repository : There could be a condition where you want to add a new repository and you will get the message like repository already exist, or in other case when you mistakenly set the remote name wrong, then we need ...

Adding a remote address to git

Add Remote Address : Git allow you to fetch and commit the repository from remote address. Before doing any operation using remote address you need to specify the remote address for the repository. We can connect with remote repository using one ...

Inspecting a Repository

Inspecting a Repository : Git provides the way to track changes in repository.In this article I will tell you how you can track the changes of your repository before and after committing the changes. git status : The git status command will...

Commit Changes to git

Commit Changes to git : As we know git is a popular version control system for projects.Here I will guide you how to do changes in repository files and save those changes in repository. When we save or commit our changes then the git creates a ne...

Getting a Git Repository

Importing the GIT Repository : Getting the Git repository is very easy. A git repository is a place where the copy of a project is tacked.We can import the git repository or project from local or remote machine. We can get the git repository in ...

git Installation on Ubuntu

git Installation on Ubuntu Installing GIT on locally : Git is a open source project version control system. Before you start using Git, you have to make it available on your computer. Even if its already installed, its probably a good idea to ...

Top 10 Git commands that every body should know

Some of Basic commands: git init : To create/initalize a git repository git clone : To get a copy of existing Git Repository git branch : To check the current branch on which you are git checkout -b "new branch name" : Create a new bran...
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: