blob: 67c5afedc866f6c1be54dbc118650994cf81c6b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
git init
git add .
git commit -m 'Initial commit'
git remote add origin link-to-repo
git push origin master
git branch --set-upstream-to=origin/master master
git branch new-branch
git switch new-branch
git checkout -b new-branch
git switch master
git merge new-branch
git pull -> git fetch && git merge origin/master
git fetch --dry-run?
git remote show origin
git remote update ~= git fetch --all
git status -uno?
git fetch
git diff master origin/master
git branch -a #list branches
git branch -d branch-to-delete
git log
git show <commit-id>
git checkout old-commit
git checkout master
# Pushing to non-bare repo (apply to repo that need to recive update)
git config --local receive.denyCurrentBranch updateInstead
|