GIT

1 post / 0 new
benzzon
benzzon's picture
GIT

*** Notes on GIT:

-- global ignore-file:
git config --global core.excludesfile "%USERPROFILE%\.gitignore"

-- Discussion about file modification dates:
http://stackoverflow.com/questions/1964470/whats-the-equivalent-of-use-commit-times-for-git

http://think-like-a-git.net/

*** Get branch name, useful when compiling:
git symbolic-ref -q --short HEAD

*** Get Current SHA:
git rev-parse --verify HEAD

*** Get Current "short" SHA:
git rev-parse --verify --short HEAD

*** Get Current "short" SHA, oneline-format for easier insert into compiled code as revision-info:
git log -1 --pretty=format:%h


*** Show info about remote repository, for current repository:
git remote -v

*** Create formatted log of all commits, include any "tags":
git log --pretty=format:"%h : %cd : %s : %d" --date=iso > repo_log.txt

GitHub videos: https://mva.microsoft.com/en-US/training-courses/github-for-windows-users-16749?l=KTNeW39wC_6006218965
Version Control Guide (ex-Branching & Merging): http://vsarbranchingguide.codeplex.com/releases