X-Git-Url: https://git.phdru.name/?p=git-wiki.git;a=blobdiff_plain;f=pep-103.txt;h=867784cf7d9a0fb4a5aa0574b67e45c159a4bf9a;hp=f9388f7017880049fcde014dbafa25fa8e3f3291;hb=6f76777b0bb5c0850ebb82644cec24f2f890cda8;hpb=f35791b0e8a1500c9cab2a7f1fb5c5c1b9633f16 diff --git a/pep-103.txt b/pep-103.txt index f9388f7..867784c 100644 --- a/pep-103.txt +++ b/pep-103.txt @@ -82,18 +82,18 @@ Unix users: `download and install using your package manager `_. Microsoft Windows: download `git-for-windows -`_ or `msysGit -`_. +`_. MacOS X: use git installed with `XCode -`_ or download from -`MacPorts `_ or +`_ or download from `MacPorts +`_ or `git-osx-installer `_ or install git with `Homebrew `_: ``brew install git``. -`git-cola `_ is a Git GUI -written in Python and GPL licensed. Linux, Windows, MacOS X. +`git-cola `_ (`repository +`_) is a Git GUI written in +Python and GPL licensed. Linux, Windows, MacOS X. `TortoiseGit `_ is a Windows Shell Interface to Git based on TortoiseSVN; open source. @@ -440,7 +440,7 @@ Read `how to recover from upstream rebase `_. It is in ``git help rebase``. -On the other hand don't be too afraid about commit editing. You can +On the other hand, don't be too afraid about commit editing. You can safely edit, reorder, remove, combine and split commits that haven't been pushed yet. You can even push commits to your own (backup) repo, edit them later and force-push edited commits to replace what have @@ -532,11 +532,11 @@ For example, if you want to reset the branch ``master`` back to the original commit but preserve two commits created in the current branch do something like:: - $ git branch save-master # create a new branch saving master - $ git reflog # find the original place of master + $ git branch save-master # create a new branch saving master + $ git reflog # find the original place of master $ git reset $COMMIT_ID $ git cherry-pick save-master~ save-master - $ git branch -D save-master # remove temporary branch + $ git branch -D save-master # remove temporary branch git revert: revert a commit @@ -888,7 +888,7 @@ has an option ``-O`` that passes a list of names of the found files to a program; default program for ``-O`` is a pager (usually ``less``), but you can use your editor:: - $ git grep -Ovim # but not -O vim + $ git grep -Ovim # but not -O vim 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 @@ -971,8 +971,8 @@ both are written in Python; pagure was written by Fedora developers and is being used to develop some Fedora projects. `GitPrep `_ is yet another Github clone, written in Perl. `Gogs `_ is written in Go. -`GitBucket `_ is written -in Scala. +`GitBucket `_ is +written in Scala. And last but not least, `Gitlab `_. It's perhaps the most advanced web-based development environment for git. @@ -1008,7 +1008,7 @@ To work with the repository just use regular git commands including To start converting your Mercurial habits to git see the page `Mercurial for Git users -`_ at Mercurial wiki. +`_ at Mercurial wiki. At the second half of the page there is a table that lists corresponding Mercurial and git commands. Should work perfectly in both directions.