X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=pep-git.txt;h=15413e37024b934dc6c3819c6b1b2b120b173925;hb=58dc49a303b996375150d11c677b93a4511d55d4;hp=f2ce4c151d60a78928bd3879afbe2ec018f952c8;hpb=1b20b4ee8cec8661e6ae46b994b38fb25a22915f;p=git-wiki.git diff --git a/pep-git.txt b/pep-git.txt index f2ce4c1..15413e3 100644 --- a/pep-git.txt +++ b/pep-git.txt @@ -180,9 +180,10 @@ When you do an initial clone like this:: $ git clone -b v1 http://git.python.org/python.git git clones remote repository ``http://git.python.org/python.git`` to -directory ``python``, creates remote-tracking branches, creates a -local branch ``v1``, configure it to track upstream remotes/origin/v1 -branch and checks out ``v1`` into the working directory. +directory ``python``, creates a remote named ``origin``, creates +remote-tracking branches, creates a local branch ``v1``, configure it +to track upstream remotes/origin/v1 branch and checks out ``v1`` into +the working directory. Updating local and remote-tracking branches ------------------------------------------- @@ -208,7 +209,8 @@ The second command fetches commits from the named $BRANCH in the $REMOTE repository that are not in your repository and updates both the local branch $BRANCH and its upstream remote-tracking branch. But it refuses to update branches in case of non-fast-forward. And it -refuses to update the current branch. +refuses to update the current branch (currently checked out branch, +where HEAD is pointing to). The first command is used internally by ``git pull``. @@ -353,6 +355,10 @@ tags. To push tags list them explicitly:: $ git push origin tag 1.4.2 $ git push origin v1 master tag 2.1.7 +Or push all tags at once:: + + $ git push --tags origin + Don't move tags with ``git tag -f`` or remove tags with ``git tag -d`` after they have been published. @@ -818,7 +824,7 @@ TODO: gitweb; cgit; Kallithea; pagure; gogs and gitea; gitlab. https://git.kernel.org/cgit/git/git.git/tree/gitweb -http://git.zx2c4.com/cgit/ +http://git.zx2c4.com/cgit/about/ https://kallithea-scm.org/