Shuvankar Paul Software Engineer, Strativ AB Magento eCommerce Website Development, Website Development Using Php and HTML and Cross-Platform application development using Appcelerator.

Most Common Git Issues & Solution

25 sec read

Git global setup
git config --global user.name "Shuvankar Paul" 
git config --global user.email "shuvoenr@gmail.com"
Git Specific Repository Setup
git config credential.username "new_username"

After Creating new Branch git checkout to new Branch not working

For Example, you have only one branch named “master”, and you have create new branch “development”. But when you want to git switch new branch with

git checkout new_branch

You will found : error: pathspecdevelopment‘ did not match any file(s) known to git.

Reason : Because your existing file system does not have information about new git branch.

Solution :

git remote update
git fetch

Clone Git Directory to Specific Directory

git clone git@github.com:whatever folder-name

Shuvankar Paul Software Engineer, Strativ AB Magento eCommerce Website Development, Website Development Using Php and HTML and Cross-Platform application development using Appcelerator.

All common Git related problem & it’s the solution

How do I configure git to ignore some files locally? This is kind of common problem we face, like Can I ignore files locally...
Shuvankar Paul
1 min read

Leave a Reply

Your email address will not be published. Required fields are marked *