Command-line shortcuts to make git easier
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lazy-git/README.md

72 lines
1007 B

# lazy-git
10 years ago
10 years ago
Script for automating the most common git tasks.
10 years ago
If you are lazy, this may be for you :)
10 years ago
## Usage
10 years ago
### Clone github repo
10 years ago
Commands you want:
- `git clone https://github.com/MightyPork/lazy-git`
With LazyGit:
```
ghc MightyPork/lazy-git
```
### Check git status
10 years ago
Commands you want:
10 years ago
- `git status`
10 years ago
With LazyGit:
10 years ago
```
g check
```
10 years ago
### Pull from origin
10 years ago
Commands you want:
10 years ago
- ` git pull`
10 years ago
With LazyGit:
10 years ago
```
g pull
```
### Add all, commit and push
10 years ago
Commands you want:
10 years ago
- `git status` (if no changes, stop here)
- `git add --all`
- `git commit -m "...."` (ask for message)
10 years ago
- `git push`
With LazyGit:
10 years ago
```
g send
```
10 years ago
`g send` is interactive, it shows you the changes and prompts for a message.
The operation can be canceled without damage by hitting ^C at the commit prompt.
### Add all & commit (without push)
This is like `g send`, but without pushing the result. Use `g push` or `git push`
to send your new commits to the server.
```
g add
```
(`g commit` and `g stage` are aliases)