mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 21:44:58 +02:00
Merge branch 'sethwoodworth-master'
This commit is contained in:
commit
20d9296444
3 changed files with 31 additions and 1 deletions
11
pages/common/git-fetch.md
Normal file
11
pages/common/git-fetch.md
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# git fetch
|
||||||
|
|
||||||
|
> Download objects and refs from a remote repository.
|
||||||
|
|
||||||
|
- Fetch new branches and update remote-tracking branches:
|
||||||
|
|
||||||
|
`git fetch {{remote_name}}`
|
||||||
|
|
||||||
|
- Fetch the latest changes from all remote git servers:
|
||||||
|
|
||||||
|
`git fetch --all`
|
|
@ -6,6 +6,6 @@
|
||||||
|
|
||||||
`git init`
|
`git init`
|
||||||
|
|
||||||
- Initialize a barebones repository:
|
- Initialize a barebones repository, suitable for use as a remote over ssh:
|
||||||
|
|
||||||
`git init --bare`
|
`git init --bare`
|
||||||
|
|
19
pages/common/git-rebase.md
Normal file
19
pages/common/git-rebase.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# git rebase
|
||||||
|
|
||||||
|
> Apply local commits on top of another branch's history.
|
||||||
|
|
||||||
|
- Rebase your local branch interactively with the latest changes in local master:
|
||||||
|
|
||||||
|
`git rebase -i master`
|
||||||
|
|
||||||
|
- Rebase your local branch interactively with the latest changes from upstream:
|
||||||
|
|
||||||
|
`git fetch origin; git rebase -i origin/master`
|
||||||
|
|
||||||
|
- Handle an active rebase merge failure, after editing conflicting file(s):
|
||||||
|
|
||||||
|
`git rebase --continue`
|
||||||
|
|
||||||
|
- Abort a rebase in-progress:
|
||||||
|
|
||||||
|
`git rebase --abort`
|
Loading…
Add table
Reference in a new issue