X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=pep-git.txt;h=1c78dd490d0ee14893f4f0fdfc2caba5aa51d6c0;hb=9ff6debea668528ba77806e2df3bf569cb44ea1e;hp=985f78a4aedbc4d14212b15ede723634b72da3fa;hpb=e7a11650e6d0c2a0c694838f4a8149a2633a47bb;p=git-wiki.git diff --git a/pep-git.txt b/pep-git.txt index 985f78a..1c78dd4 100644 --- a/pep-git.txt +++ b/pep-git.txt @@ -272,6 +272,7 @@ Default remote repository for fetching/pulling is ``origin``. Default set of references to fetch is calculated using matching algorithm: git fetches all branches having the same name on both ends. + Push '''' @@ -341,6 +342,7 @@ That changed in git 2.3, but see `the blog post for caveats; in 2.4 the push-to-deploy feature was `further improved `_. + Tags '''' @@ -782,9 +784,16 @@ but you can use your editor:: $ git grep -Ovim # but not -O vim -BTW, there is a difference between running ``git grep -O`` and ``git -grep -Oless`` - in the latter case ``git grep`` passes ``+/pattern`` -option to ``less``. +BTW, if git is instructed to use ``less`` as the pager (i.e., if pager +is not configured in git at all it uses ``less`` by default, or if it +gets ``less`` from GIT_PAGER or PAGER environment variables, or if it +was configured with ``git config --global core.pager less``, or +``less`` is used in the command ``git grep -Oless``) ``git grep`` +passes ``+/$pattern`` option to ``less`` which is quite convenient. +Unfortunately, ``git grep`` doesn't pass the pattern if the pager is +not exactly ``less``, even if it's ``less`` with parameters (something +like ``git config --global core.pager less -FRSXgimq``); fortunately, +``git grep -Oless`` always passes the pattern. bash/zsh completion @@ -833,8 +842,8 @@ repositories can be made user- or group-writeable (see parameter ``core.sharedRepository`` in ``git help config``). If that's too permissive or too restrictive for some project's needs there is a wrapper `gitolite `_ that can -be configured to allow access with great granularity; gitolite has a -lot of documentation. +be configured to allow access with great granularity; gitolite is +written in Perl and has a lot of documentation. Web interface to browse repositories can be created using `gitweb `_ and `cgit