-
Notifications
You must be signed in to change notification settings - Fork 0
TECH TALK 8 GIT BASICS
Piotr Dybowski edited this page Jan 22, 2019
·
1 revision
- What is Git?
- How to GGG (Get Git Going)?
- Day-to-day commands
Distributed version control system with staging areas, local branching, multiple workflows and much more! :)
Multiple level config: /pat_to_your_repo/.git/config > ~/.gitconfig > /etc/gitconfig
[user]
email = [email protected]
name = Piotr Dybowski
[core]
editor = vim
...
[push]
...
[alias]
...
[alias]
my-commits-last-month = !git log --after={`date -d -0month "+%Y-%m-01"`} --author=\"dybowski\" --pretty=format:\"%cd %h %s\" --date=short --branches --no-merges
s = status -sb
st = stash
stp = stash pop
one = log --oneline
co = checkout
ci = commit
cia = commit -a
rh = reset --hard HEAD
pf = push --force-with-lease
br = branch
desc = describe
git config -l --local
git config -l --global
git help
git status
-
git log
-> git one (one = one = log --oneline
) git fetch
git pull
git merge
git checkout
git branch
git add
-
git commit
(-a, --amend) git rebase
git branch
-
git rebase
vsgit merge
git reflog
git reset
-
git push
vsgit push --force
vsgit push --force-with-lease
https://git-scm.com/book/en/v2
https://drive.google.com/drive/u/0/folders/1iItjh9xgWLNM2BJeHmRLAuadp_ol_349