Learn free git tutorials

Fix for Gitlab Permission denied publickey

February 22, 2023 ·  2 min read

This tutorial explains about solution for [email protected]: Permission denied (publickey). Gitlab is a cloud hosting for managing git repositories. When you are working with source code repositories, You need to clone code, add/change code, and push changes to the gitlab repository. When you are pushing changes to GitLab using the git push command, It gives the following error. [email protected]: Permission denied (publickey). B:\waste\node-unittest.git>git push gitlab --mirror [email protected]: Permission denied (publickey). fatal: Could not read from remote repository....

How to change Remote URL git remote repository

February 21, 2023 ·  2 min read

This tutorial explains how to change the remote repository for an existing local repository This will be used once you migrated the repository from different repositories such as GitHub, GitLab, and bitbucket. How do I change the URI (URL) for a remote Git repository? Following are the steps required to change the GitHub remote repository. One way using the command line Git View the existing remote repository First, run the git remote -v command on an existing repository...

Solution git fatal: remote origin already exists error on push

February 21, 2023 ·  2 min read

This article discusses how to resolve the issue git fatal: remote origin already exists error during the push or add commands. How to fix git fatal: remote origin already exists error on push You must run the ‘git init’ command to enable git for any application or folder/directory. Once git is initialized, we must either create a new repository or clone an existing repository to map this to the existing directory....

Frequently used Top 10 SVN Command examples

February 28, 2022 ·  3 min read

SVN commands are used by most developers when there is project development involves multiple locations by different teams. I am listing down some of the frequently used commands. How to find the SVN version? E:\techrocksz>svn --version svn, version 1.6.12 (r955767) compiled Jun 21 2010, 16:00:59 Copyright (C) 2000-2009 CollabNet. It displays the current svn client version. How to find different commands available in the SVN tool? E:\techrocksz>svn help usage: svn [options] [args] Subversion command-line client, version 1....

How to delete a branch in git using tortoiseGit

February 28, 2022 ·  2 min read

Creating and deleting branches in git repositories are common operations used by developers every day. We can do this either in the Command line with the git command in the terminal or using the Git client tool. Git Client tools are useful for developers How to delete branches locally and remotely in the TorotiseGit tool Let’s see how to delete a local and remote branch in the github repository. Following are steps...

How to fix git error:src refspec origin does not match any

February 28, 2022 ·  4 min read

This post talks about how to fix a git error. error: src refspec master does not match any error: failed to push some refs to ‘url.git’. Possible causes for this error for the below use cases Create and commit changes to the remote repository Push the existing repository from the command line Here are the steps and commands for creating and cloning and committing the repository git init git add README....

You'll get a notification every time a post gets published here.