How To Add New Remote Repository In Git?

How To Add New Remote Repository In Git?

Git is a distributed source code versioning system where repositories are used as central points and developers download and push changes to their locals. In an existing git project, the new remote repository can be added with the git remote add command by specifying the remote repository URL, repository name, etc. In the tutorial, we … Read more

How To Checkout Remote Git Branch?

How To Checkout Remote Git Branch?

Git provides remote branches in order to collaborate with others. The git checkout command is used to checkout remote branches. The collaborated repositories are hosted in the remote Git servers and used by other developers. Fetch Remote Branch Information First, we will fetch and update remote branch information. The git fetch command with the –all … Read more

How To Delete Local Branch In Git?

How To Delete Local Branch In Git?

Git provides the git branch -d command in order to delete the local branch in a git repository. This command accepts the branch name as a parameter which will be deleted. Keep in mind that this command only deletes the local branch and can not be used to delete the remote Git branch. List Local … Read more

How To Rename (Local and Remote) Git Branch?

How To Rename (Local and Remote) Git Branch?

Git provides branches in order to create multiple copies of the current code repository. Branches can be identified by their hashes and names but the names are more human-friendly for identification. Branche names can be set at the start of the branch creation but also changes after creation. In this tutorial, we examine how to … Read more

How To Delete Remote Branch In Git?

How To Delete Remote Branch In Git?

Git uses remote branches which are also called remote references. Remote branches are located in the remote repositories and not stored in the local system. But we can delete the remote branch in Git without storing it locally. List Remote Git Branchs Before deleting a remote branch listing it is very beneficial. The git branch … Read more

How To Undo Last Commit In Git?

How To Undo Last Commit In Git?

Commits are used to put new versions to the source code. But some commits can be unwanted and required to undo the last commit. Also, wrong files can be committed accidentally which requires undoing the last command. Undo the Last Commit (Soft) The undo the last command can be done with the git reset command. … Read more

How To Delete Git Branch (Locally and Remotely)?

How To Delete Git Branch (Locally and Remotely)?

Git branches are an important part of the git. By using branches the codebase can be easily developed by different developers or groups and then merged again. After the development is complete and changes are merged into the main branch other development branches can be deleted. There are two types of branches called local branch … Read more

Git Tag (Tagging) Tutorial

Git Tag (Tagging) Tutorial

Like most source version control systems, the git provides the tags or tagging mechanism in order to set tags for specific versions. Tags are used to set simple and short names for versions like “development”, “v1”, “v1beta” etc. In this tutorial we examine how to work with tags like listing, setting, searching, and removing tags … Read more