improved readme
This commit is contained in:
@@ -2,33 +2,59 @@ lazy-git
|
|||||||
========
|
========
|
||||||
|
|
||||||
Script for automating the most common git tasks.
|
Script for automating the most common git tasks.
|
||||||
|
If you are lazy, this may be for you :)
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
|
||||||
**Check status**
|
**Clone github repo**
|
||||||
|
|
||||||
|
Commands you want:
|
||||||
|
|
||||||
|
- `git clone https://github.com/MightyPork/lazy-git`
|
||||||
|
|
||||||
|
With LazyGit:
|
||||||
|
|
||||||
|
```
|
||||||
|
ghc MightyPork/lazy-git
|
||||||
|
```
|
||||||
|
|
||||||
|
**Check git status**
|
||||||
|
|
||||||
|
Commands you want:
|
||||||
|
|
||||||
- `git status`
|
- `git status`
|
||||||
|
|
||||||
|
With LazyGit:
|
||||||
|
|
||||||
```
|
```
|
||||||
g check
|
g check
|
||||||
```
|
```
|
||||||
|
|
||||||
**Pull from origin/master**
|
**Pull from origin**
|
||||||
|
|
||||||
|
Commands you want:
|
||||||
- ` git pull`
|
- ` git pull`
|
||||||
|
|
||||||
|
With LazyGit:
|
||||||
|
|
||||||
```
|
```
|
||||||
g pull
|
g pull
|
||||||
```
|
```
|
||||||
|
|
||||||
**Send to origin/master**
|
**Commit and push to origin**
|
||||||
|
|
||||||
|
Commands you want:
|
||||||
|
|
||||||
- `git status` (if no changes, stop here)
|
- `git status` (if no changes, stop here)
|
||||||
- `git add --all`
|
- `git add --all`
|
||||||
- `git commit -m "...."` (ask for message)
|
- `git commit -m "...."` (ask for message)
|
||||||
- `git push origin master`
|
- `git push`
|
||||||
|
|
||||||
|
With LazyGit:
|
||||||
|
|
||||||
```
|
```
|
||||||
g send
|
g send
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`g send` is interactive, it shows you the changes and prompts for a message.
|
||||||
|
|||||||
Reference in New Issue
Block a user