Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions pages/common/git-fetch.md
Original file line number Diff line number Diff line change
@@ -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`
2 changes: 1 addition & 1 deletion pages/common/git-init.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

`git init`

- Initialize a barebones repository
- Initialize a barebones repository, suitable for use as a remote over ssh

`git init --bare`
19 changes: 19 additions & 0 deletions pages/common/git-rebase.md
Original file line number Diff line number Diff line change
@@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Double space between branch and interactively


`git fetch origin; git rebase -i origin/master`

- Handling an active rebase merge failure, after editing conflicting file(s)

`git rebase --continue`

- Abort a rebase in-progress

`git rebase --abort`