Commit Graph

447 Commits (master)
 

Author SHA1 Message Date
Filip Havrlent 0f16ad1e2d Issue #194 - Snippet to list changes (diff) of a specific file between two commits (or branches) 6 years ago
Richard Littauer 4f3582494d
Incorporate Git Cheatsheet (#174)
* Adding Git Cheatsheet commands

This is an example of how #90 should be done.

* Move other configuration commands

* Move configuration
6 years ago
Erik Martin-Dorel 4d42bb9070 Fix rule "i-want-to-create-a-new-remote-branch-from-current-local-one" (#208)
* Add missing HEAD argument in 2 Git commands

These commands had been inserted in #148 and (over)simplified in #163.

The issue is that `git push <remote>` and `git push -u <remote>` will
typically raise the error below (unlike `git push <remote> HEAD`):

--8<---------------cut here---------------start------------->8---
fatal: The current branch new-branch has no upstream branch.
To push the current branch and set the remote as upstream, use

    git push --set-upstream origin new-branch
--8<---------------cut here---------------end--------------->8---

* Add doc URL & Avoid triple backquotes
6 years ago
Gabriel Caruso d8c55ae8c5 Fix misspelling (#206) 6 years ago
Artem Buslov 14ea0820c8 Added test for TOC to .travis.yml (#205)
Runs doctoc for README*.md.
If in newly doctoc'ed README*.md there are any diffs against
ones commited in git HEAD then the test failes.
The script are using the latest anchor-markdown-header from repo
to avoid the bug with non-ASCII headers.
6 years ago
Artem Buslov ea40bf75ca Translate README_ru.md via GitLocalize (#203) 6 years ago
Gabriel Caruso fb27b20f1f Remove unnecessary anchor tags (#200) 6 years ago
Nick Kirby e0513d81c2 I made changes to the wrong branch (#202)
* I made changes to the wrong branch

* Missed from last commit

* Fixing links

* Making changes

* Another change

* Moving section
6 years ago
Emmanuel Arias be480c4c35
Merge pull request #201 from carusogabriel/patch-1
Possible mistake
6 years ago
Gabriel Caruso 3f85b185de
Possible mistake 6 years ago
Gabriel Caruso f9792e9c68 Clean up READMEs (#198)
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
6 years ago
Richard Littauer 590f63c7e6 Add colon 6 years ago
vonglasow 5de8869df2 Add a way to find tags containing specific commit (#195)
* Add a way to find tags containing specific commit

* fixup! Add a way to find tags containing specific commit
6 years ago
Leandro Loriato 4dcb631734 Including snippet to list commits containing specific files (#197) 6 years ago
Gabriel Caruso e4e6ee08b1 Add "I want to delete multiple branches" (#196) 6 years ago
Artem Buslov 26138f0f10 Fixed typo in `git branch -rr` invocation (#190) 6 years ago
Artem Buslov 68820c1dc3 Auto-check for translated pages README_*.md with Travis CI (#188) 6 years ago
Artem Buslov 84322067fe Updated Russian translations (#187) 6 years ago
Eduardo Matos 7dc4eedb17 Removing -x on git clean tip to avoid unintentional use (#186)
* Removing -x on git clean to avoid unintentionally use

* Removing ! on git clean tip
6 years ago
Vitor Guilherme Forbrig 697dbb404f Update CONTRIBUTE.md (#185)
gitlocalize repository url
6 years ago
Kate Hudson 423eaf0ede
Merge pull request #183 from sotayamashita/feature/validate-links
Add travis config to validate links
6 years ago
Richard Littauer ae8459b6da Missed this grammar bit 6 years ago
Sam Yamashtia 3966d41462 Add translation section to contributing (#179)
* Add translation section to contributing

* Update CONTRIBUTE.md

* Update CONTRIBUTE.md

* Update CONTRIBUTE.md
6 years ago
Mike Melnicki ca04c4bfb4 Added the Atlassian Git tutorial site (#181) 6 years ago
Mike Melnicki 58fab97420 Fixed the typo for Sourcetree and updated the description (#180) 6 years ago
Sam Yamashita c91d1081c4 Add travis config to calidate links 6 years ago
Kate Hudson e5039cc2b9 Rename zh-CN translation to be compatible with GitLocalize (#178) 6 years ago
Richard Littauer f462bad54d
Add examples from the common screwups resource in #40 (#175)
* Adding submodule section

* Add the rest of the commands
6 years ago
Siddharth Kannan da44b4d6c1 add the usage information for for git-branch --set-upstream-to (#176)
* add application for git-branch --set-upstream-to

* run doctoc - typo in one line for the TOC

* put note in bash comment
6 years ago
Dineshkumar Pandiyan da6f0f8e66 Branches - list branches (#171) 6 years ago
lxjwlt d6d5c6f920 fix a typo (#170) 6 years ago
Emmanuel Arias 4a6f537157
Merge pull request #166 from k88hudson/feat/set-head
Add an example using `set-head`
6 years ago
Clemens Lieb 8d74313257 Add reset-author and no-edit to author rewriting (#169) 6 years ago
JUAN CALVOPINA M 418f0a0032 Added new topic: Finding (#168)
* New Topic for 'Finding'

Added command which can be used to find a string in any commit

* Added command that can be used to find for commits either by author or committer

* Fixed link
6 years ago
Artem Buslov 472f05caf0 Added section with links to every language (#167) 6 years ago
Richard Littauer 7a68447ac9 Add an example using `set-head`
This is just one of many possible examples using set-head, but which might be useful for others to discover the command.
6 years ago
Kaartic Sivaraam 12bc63375d A few cleanups (#163)
* Consolidate the name of the subsystem

The name of the subsytem is considered to be 'Git' and not 'git'.
There was inconsistency in the document by referring to the subsystem
using both 'git' and 'Git'.

Consolidate the usages to 'Git' which is generally considered to be
the name of the subsystem.

* Consolidate the name of GitHub

They website is generally called 'GitHub' and not 'github'.

* Quote the git commands correctly

* Avoid fullstops in section names

This is done for the sake of consistency. Most of the section names
don't have a fullstop at the end.

So, ...

* Update the ToC

The Table of Contents seems to have been out of date with the section
titles.

So, update the ToC with 'doctoc'.

* Clarify that the changes are removed only for the previous commit

* Showcase the flexibility of `git fetch -p`

The example for that exhibits the way to 'prune' remote branches that
were deleted upstream wasn't flexible as it relied on the command
defaulting to the upstream of the current branch. This might lead
the reader into overlooking the flexibility of the `git fetch`.

Show that the 'upstream' can be mentioned in the command thus show
casing the flexibility of `git fetch`.

* Exemplify the safer version of branch deletion

It's not good for newbies to start using 'force deletion' when they
want to delete a branch as it might lead them to them into
'accidentally' deleting their branches often without merging them
into other branches or pushing them to an upstream.

So, exemplify the safer version of branch deletion (branch -d) and
warn them about what `git branch -D` does.

* Improve readability of a few phrases

It's not required to use 'git' a lot as this a document about Git,
after all.

* Use HTTPS links for sites that serve using HTTPS

* Clarify that rebasing just re-writes history

Rebasing fast-forwards when the tip of the branch is a descendent of
the tip of the upstream. In other cases it re-writes the history. This
re-write is what actually leads the user to 'force' update the remote.

So, clarify that a user has to force update only when the history is
re-written regardless of whether the branch was fast-forwarded.

* Attribute both the authors of the second edition of Pro Git

* Try a different form of emphasizing text

Capitalizing words seems to be over emphasizing words. Italicize
the words, instead to see if works.

* Mention what 'upstream' means for the sake of clarity

* Simplify the way to create a remote branch from the local one

The commands were needlessly complex by not considering the fact
that the command defaults to HEAD when no branch is specified and
changing configuration when it wasn't required.

Simplify the commands to make readers more happy!

* Remove a character cruft left over while editing

This is an instance of a carelessly edited document getting into
version control. ;)

* Improve a sentence

... by,

- expanding acronyms
- quoting a command line parameter
6 years ago
Artem Buslov 565b8259da Update Russian translations up to English source (#165) 7 years ago
Kaartic Sivaraam 0e478ad4cc Show how a newly added file can be removed (#164)
This shows how the user can remove a newly added file from the
previous commit.
7 years ago
Dineshkumar Pandiyan 231b474600 Discarding staged changes vs unstaged changes - commands corrected (#159)
* Discarding staged changes vs unstaged changes - commands corrected

* added space between word and parenthesis

* Added <a> tag and TOC for content

* adding missing backticks

* Updated links in staging section
7 years ago
Artem Buslov 02e357c5b4 Added russian translations (#161) 7 years ago
hgautham c128fff050 Iss-150: Fixed section about discarding local uncommitted changes (#160)
Iss-150: minor fix
7 years ago
Emmanuel Arias 5eaca03df3
Merge pull request #158 from juanca87/git-merge-abort
Added command to abort the merge
7 years ago
JUAN CALVOPINA M 045015f66d
Update README.md
Added a link to the description to abort the merge
7 years ago
Juan Calvopina 5fc6b2289d Added command to abort the merge 7 years ago
Tadeu Manoel f4c0fac6ef Add safety note for `git reset --hard` (#157)
resolves #155
7 years ago
Josh 7440fa32b5 Discard local uncommitted changes (#156) 7 years ago
Scott Dutton 02043187a7 Add githug (#152)
* Add githug

Githug is a great interactive game for leaning git

* Update README.md
7 years ago
Rijul1999 7cdaca391f Added some common Git screwups and solutions (#148)
* Added some common Git screwups and solutions

* Added required changes

* Added another way to create new remote branch

* Added required changes

* Added required changes

* Added  required changes

* Added required changes
7 years ago
Emmanuel Arias 8426f177dd
Fix #149 @RichardLitt comment
Fix #149 PR merged
7 years ago