Commit 7fbfab91 authored by Vincent Tam's avatar Vincent Tam

Bash: Git: added

parent bf732c67
Pipeline #58756816 passed with stages
in 47 seconds
......@@ -956,6 +956,13 @@ repo to an SSH remote for sharing.
branch.
- `git pull <remote-name> <branch-name>`: perform `git fetch` _and_ `git
merge`.
- `git pull --rebase`/`git pull -r`: perform `git fetch` _and_ `git rebase` to
get a _linear_ commit history instead of _multiple parents_ in the `HEAD`
commit. Useful when you've _already committed to a branch whose upstream
has also changed_, and you want a _linear commit history_.
1. fetch commits from remote (`git fetch`)
2. modify commit history by applying local commits on top of remote ones
(`git rebase`).
- abandon a merge: `git merge --abort`
- revert a single commit
+ non-merge commit: `git revert <commit>`
......
Subproject commit 9555ee02229188f6940109950556a6a8d09e598e
Subproject commit 583bdf41f608fd155b94c9583ab32ffa8d2f61cd
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment