mirror of
https://github.com/muerwre/muerwre.github.io.git
synced 2025-04-25 02:46:39 +07:00
added whole content
This commit is contained in:
parent
1b5df685cb
commit
8b25e0631a
70 changed files with 5962 additions and 19 deletions
30
content/Git/Git aliases and useful commands.md
Normal file
30
content/Git/Git aliases and useful commands.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
Shorthands for #git commands can be specified. Should be placed at `~/.gitconfig`.
|
||||
|
||||
```c
|
||||
[alias]
|
||||
flush = git clean-branches branch | grep -v master | xargs git branch -D
|
||||
lol = log --oneline --graph
|
||||
l = lol
|
||||
c = commit -am
|
||||
cv = commit --no-verify -am
|
||||
p = push
|
||||
pf = p --force-with-lease
|
||||
ignore-now = update-index --skip-worktree
|
||||
```
|
||||
|
||||
| **command** | **description** |
|
||||
|---|---|
|
||||
| `git flush` | drops all branches, except master |
|
||||
| `git lol` | shows log |
|
||||
|`git c` | commits with message |
|
||||
| `git cv` | commits without hooks |
|
||||
| `git p` | pushes |
|
||||
| `git pf` | push with --force and additional check |
|
||||
| `git ignore-now` | starts ignoring file from now on |
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue