Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a "branch tip" in Git?

Tags:

git

git-branch

I'm learning Git and reading the Pro Git book. The term "branch tip" is used sometimes in the book and also here on Stack Overflow, but I can't find the meaning of it.

like image 706
ʕ ᵔᴥᵔ ʔ Avatar asked Apr 18 '13 10:04

ʕ ᵔᴥᵔ ʔ


People also ask

What is master Git?

In Git, "master" is a naming convention for a branch. After cloning (downloading) a project from a remote server, the resulting local repository has a single local branch: the so-called "master" branch. This means that "master" can be seen as a repository's "default" branch.

How do I cut a branch in GitHub?

On GitHub.com, navigate to the main page of the repository. Above the list of files, click Branches. Scroll to the branch that you want to delete, then click . If you try to delete a branch that is associated with at least one open pull request, you must confirm that you intend to close the pull request(s).

How do you empty a branch?

The command to delete a local git branch can take one of two forms: git branch –delete old-branch. git branch -d old-branch.


1 Answers

A branch tip is the last commit or most recent commit on a branch. Basically it points to the most up to date code in the branch.

like image 189
Kevin Bowersox Avatar answered Sep 28 '22 11:09

Kevin Bowersox