Commit Graph

11 Commits (3d2fc222074561ab3b0e5ae4e9d18eb4e0c0cc38)

Author SHA1 Message Date
Waldir Pimenta 05780d6183 git-checkout: "modifications" --> "changes" 2017-05-18 17:24:52 +01:00
Waldir Pimenta 6f9dbe9fce git-checkout: mention reset, add single-file ex. 2017-05-18 17:24:52 +01:00
Waldir Pimenta 2a4379ceea git-checkout: correct checkout of remote branch (#1359)
As described in http://stackoverflow.com/a/9537923 (paraphrased below):

> You need to create a local branch that tracks a remote branch.
> The following command will create a local branch
> tracking the remote branch of the same name.
> When you push your changes the remote branch will be updated.
>
> `git checkout --track [remotename]/[branch]`
>
> This is a shorthand for `git checkout -b [branch] [remotename]/[branch]`.
>
> For git 1.7.2.3 and higher this is enough: `git checkout daves_branch`
>
> Note that with recent git versions,
> **this will command not create a local branch and will put you in a 'detached HEAD' state.**
> If you want a local branch, use the --track option.
> Full details here: http://git-scm.com/book/en/v2/Git-Branching-Remote-Branches#Tracking-Branches
2017-04-30 11:17:03 +01:00
Waldir Pimenta b7d34523f6 git-checkout: also works for remote branches (#1238) 2017-01-18 14:43:53 +00:00
Seth Woodworth e04863b55d Add git-checkout example for files across branches 2017-01-06 10:13:46 +05:30
Te-Chi Liu 5a54763c72 fixup: token string style (#1081)
- use underscore rather than minus
- use lower case rather than uppder case
2016-09-21 21:05:46 +05:30
Ruben Vereecken 066582e8ea Formatted all pages according to guidelines. 2016-01-08 09:38:59 +01:00
Ruben Vereecken b755e726c8 Fixed annoyingly incorrect file syntaxes 2016-01-07 16:51:03 +01:00
Mehdi FARSI 0d2cfc2e3d Undo unstaged local modification 2015-11-24 00:21:20 +01:00
lord63 56a7cba656 Fix lint for common 2015-10-23 08:02:34 +08:00
kxy 4d70294f06 split git commands 2014-03-09 13:20:13 +01:00