Skip to content

Commit

Permalink
Merge pull request #21 from phdru/lasttag
Browse files Browse the repository at this point in the history
Last tag
  • Loading branch information
joelparkerhenderson committed Oct 10, 2016
2 parents 6547b9c + 0c9c09f commit 372cce7
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions gitalias.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@

# commit - amend the tip of the current branch, and do not edit the message.
can = commit --amend --no-edit

# commit interactive
ci = commit --interactive

Expand Down Expand Up @@ -119,12 +119,12 @@

# log with items appearing in topological order, i.e. descendant commits are shown before their parents.
lt = log --topo-order

# log key - our favorite way to show our key performance indicators, i.e. our most useful summary.
lk = log --graph --topo-order --abbrev-commit --date=short --decorate --all --boundary --pretty=format:'%Cgreen%ad %Cred%h%Creset -%C(yellow)%d%Creset %s %Cblue[%cn]%Creset %Cblue%G?%Creset'

# log latest - show the 10 most recent lines using `lk`
ll = log -n 10 --graph --topo-order --abbrev-commit --date=short --decorate --all --boundary --pretty=format:'%Cgreen%ad
ll = log -n 10 --graph --topo-order --abbrev-commit --date=short --decorate --all --boundary --pretty=format:'%Cgreen%ad'


## ls-files ##
Expand Down Expand Up @@ -285,6 +285,12 @@
add-global-alias = "!git add-alias --global"
add-local-alias = "!git add-alias --local"

# Last tag in the current branch
lasttag = describe --tags --abbrev=0

# Latest annotated tag in all branches
lasttagged = !git describe --tags `git rev-list --tags --max-count=1`

# Show our tags
tags = tag -n1 --list

Expand Down Expand Up @@ -545,13 +551,13 @@
unwip = !"git log -n 1 | grep -q -c wip && git reset HEAD~1"

# Assume
#
#
# Sometimes we want to change a file in a repo, but never check in your edits.
# We can't use .gitignore because the file is tracked. We use update-index.
#
# If you interact with big corporate projects, such as projects in Subversion,
# then you might run into the need to ignore certain files which are under
# Subversion control, yet you need to modify them but not commit.
# then you might run into the need to ignore certain files which are under
# Subversion control, yet you need to modify them but not commit.
# The assume-unchanged flag comes to the rescue.
#
# Suppose we want to edit passwords.txt and for god's sake never check it in:
Expand All @@ -574,7 +580,7 @@
#
# Thanks to http:https://durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples/
# Thanks to http:https://blog.apiaxle.com/post/handy-git-tips-to-stop-you-getting-fired/

assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assume-all = "!git st -s | awk {'print $2'} | xargs git assume"
Expand Down Expand Up @@ -611,8 +617,8 @@
branches = branch -a
tags = tag
stashes = stash list


### SHELL SCRIPTING ALIASES ###

# Get the current branch name
Expand Down

0 comments on commit 372cce7

Please sign in to comment.