[git-users] Getting the latest tag

2012-06-05 Thread Peter van der Does
I found two ways to get the latest tag but what is difference, if there is a difference? Solution 1: git describe --tags $(git rev-list --tags --max-count=1) Solution 2: git for-each-ref refs/tags --sort=-authordate --format='%(refname)' --count=1 | sed 's/^refs\/tags\///' -- You received

[git-users] git fetch question

2012-07-16 Thread Peter van der Does
$git status Your branch is ahead by x commits So is there a way to update the SHA in something/develop? I want to use this in a script, comparing the local branch and remote branch. -- Peter van der Does GPG key: CB317D6E IRC: Ganseki on irc.freenode.net Twitter: @petervanderdoes -- You

Re: [git-users] bash SHA-1 completion

2013-07-12 Thread Peter van der Does
real0m5.826s user0m6.223s sys 0m0.923s 26365 possibilities on git diff eTABTAB -- Peter van der Does GPG key: CB317D6E Site: http://avirtualhome.com GitHub: https://github.com/petervanderdoes Twitter: @petervanderdoes -- You received this message because you are subscribed

Re: [git-users] Installing GIT on Ubuntu 12.04

2014-07-17 Thread Peter van der Does
On 07/17/2014 12:12 AM, Ellick Marquez wrote: Hi everybody, I want to install git on my computer with ubuntu 12.04 but when I put the next code sudo apt-get install git on my terminal, it shows me that the package git was removed or it doesn't exist. Please help me, I really need to use GIT

Re: [git-users] Enforce C# code style with git hooks

2015-01-14 Thread Peter van der Does
with uncrustify if code is not in your preferred code style? -- Peter van der Does GPG key: CB317D6E Site: http://avirtualhome.com GitHub: https://github.com/petervanderdoes Twitter: @petervanderdoes -- You received this message because you are subscribed to the Google Groups Git for human

Re: [git-users] Enforce C# code style with git hooks

2015-01-14 Thread Peter van der Does
the uncrustify analysis and depending on the result, you exit the script with 0 if it was ok, and 1 if it was not ok. If you exit with a 1 the commit will not be done. -- Peter van der Does GPG key: CB317D6E Site: http://avirtualhome.com GitHub: https://github.com/petervanderdoes Twitter

[git-users] git fetch deletes remote references

2015-11-21 Thread Peter van der Does
g-1 >From github.com:petervanderdoes/Testing x [deleted] (none) -> origin/bug/bug-1 $ git branch -r origin/master $ git branch * bug/bug-1 master The branch bug/bug-1 does still exist on github. Peter -- Peter van der Does GPG key: CB317D6E Site: http://avirtualhome.c