Originally in Programming#Git, now Repository:.
git diff HEAD~2
== git diff HEAD^^
git log --graph --pretty=oneline
git
commands,
thus git command
implied
git branch --sort=-committerdate | head
git checkout --merge otherbranch filename.ext
git grep "regexp" $(git rev-list --all)
git diff branch1name branch2name path/to/file
git diff --stat ThisBranch..ThatOtherBranch
git cherry-pick commitHash
git for-each-ref --sort=-committerdate refs/heads/
git checkout lastModifiedBranch
git log -n 5
to find latest 5 commits
git show commitHash
to find what was done precisely
git clone ssh://myrep
instead of git clone https://myrep
https://help.github.com/articles/why-is-git-always-asking-for-my-password/
error: src refspec master does not match any.
config --glocal color.ui auto
to enjoy git diff in color in the terminal
repository/projectname.git/
) works with gitweb but still displays no working repository
reset --hard HEAD
works but does not sound proper if done after every post-receive
(which currently have no effect)
$feature{'highlight'}{'default'} = [1];
in the /etc/gitweb.conf
and making the CSS available via push @stylesheets, "http://fabien.benetou.fr/pub/images/repositoryshares/highlight.css";
ssh:
(especially with ssh-agent running)
ssh://user@myserver.tld/path/to/my/repository
gource
in the current repository
My notes on Tools gather what I know or want to know. Consequently they are not and will never be complete references. For this, official manuals and online communities provide much better answers.