X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=git%2FREADME.md;h=640ee29e741589fd387120fc9f78deb9c3d8955a;hb=d68d0376b9cead7e1bf6446e71f00c8e3c965a45;hp=161c779e17f990c4ff6fb20b580569f42cd9caf2;hpb=2b0e9521df1d3f5be82561f568fdccf9e637112a;p=webi-installers%2F.git diff --git a/git/README.md b/git/README.md index 161c779..640ee29 100644 --- a/git/README.md +++ b/git/README.md @@ -3,12 +3,16 @@ title: Git homepage: https://git-scm.com tagline: | git: --fast-version-control -description: | - > Git is a fast, scalable, distributed revision control system with an - > unusually rich command set that provides both high-level operations and full - > access to internals. --- +To update or switch versions, run `webi git@stable` (or `@v2.30`, `@beta`, etc). + +## Cheat Sheet + +> Git is a fast, scalable, distributed revision control system with an unusually +> rich command set that provides both high-level operations and full access to +> internals. + Github's [Git 'Hello World'](https://guides.github.com/activities/hello-world/) is a good place to get started if you're new to git. @@ -40,8 +44,17 @@ This will branch from the branch you're currently on. git checkout -b my-branch-name ``` +### How to rebase by default + +```bash +git config --global pull.rebase true +``` + ### How to rebase +> To "rebase" simply means to undo any of your changes, apply updates from +> another branch first, and then replay your changes. + Rebase when fetching new updates ```bash