Files
cmp-docs/docs/progs/git.md
2024-03-02 02:54:33 +03:00

27 lines
383 B
Markdown

# GIT
## Remote control
```bash
git remote -v
git remote add origin https://site/repo.git
git remote set-url origin https://site/repo.git
```
## Config ~/.gitconfig
```ini
[user]
email = user@gmail.com
[alias]
aa = !git add -A && git status -v
up = push
st = status -v
sta = status -v
cam = commit -am
last = log -1 HEAD
[safe]
directory = /mnt/data/src
```