1 |
git config --global user.name "Vasya" |
2 |
git config --global user.email "vasya@yandex.ru" |
3 |
git init |
4 |
git add somefile.js |
5 |
git add . |
6 |
git status |
7 |
git commit -m "Your short summary about the commit" |
8 |
git commit |
9 |
git log -p |
10 |
git show |
11 |
git diff |
12 |
git checkout somefile.js |
13 |
git reset HEAD somefile.js |
14 |
git commit --amend |
15 |
git checkout -b new_branch_name |
16 |
git branch -a |
17 |
git branch -d existing_branch_name |
18 |
git merge existing_branch_name |
19 |
git log --graph --oneline --decorate |
20 |
git remote -v |
21 |
git push origin main |
22 |
git pull --verbose |
23 |
git merge origin |
24 |
git push --delete origin existing_branch |
25 |
git rebase branch_name |
Комментарии