What are the differences between local branch, local tracking branch, remote branch and remote tracking branch?

Here’s the long answer. Remotes: If you’re using Git collaboratively, you’ll probably need to sync your commits with other machines or locations. Each machine or location is called a remote, in Git’s terminology, and each one may have one or more branches. Most often, you’ll just have one, named origin. To list all the remotes, … Read more

Remote origin already exists on ‘git push’ to a new repository

You are getting this error because “origin” is not available. “origin” is a convention not part of the command. “origin” is the local name of the remote repository. For example you could also write: git remote add myorigin [email protected]:myname/oldrep.git git remote add testtest [email protected]:myname/oldrep.git See the manual: http://www.kernel.org/pub/software/scm/git/docs/git-remote.html To remove a remote repository you enter: … Read more