Skip to content

Commit dd2031c

Browse files
committed
Fixed conflicts
2 parents c68571f + f39b1a6 commit dd2031c

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
# Overwrite pull
1+
## Overwrite pull
22

33
```sh
44
git fetch --all
55
git reset --hard origin/master
66
```
77

8-
# List of all the files changed in a commit
8+
## List of all the files changed in a commit
99

1010
```sh
1111
git ls-tree --name-only -r <commit-ish>
1212
```
1313

14-
# Git reset first commit
14+
## Git reset first commit
1515

1616
```sh
1717
git update-ref -d HEAD
1818
```
1919

20-
# List all the conflicted files
20+
## List all the conflicted files
2121

2222
```sh
2323
git diff --name-only --diff-filter=U
2424
```
2525

26-
# List all branches that are already merged into master
26+
## List all branches that are already merged into master
2727

2828
```sh
2929
git checkout master
3030
git branch --merged
3131
```
3232

33-
# Quickly switch to the previous branch
33+
## Quickly switch to the previous branch
3434

3535
```sh
3636
git checkout -
@@ -40,3 +40,15 @@ git checkout -
4040
```sh
4141
git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d
4242
```
43+
44+
## List all branches and their upstreams, as well as last commit on branch
45+
46+
```sh
47+
git branch -vv
48+
```
49+
50+
## Track upstream branch
51+
52+
```sh
53+
git branch -u origin/mybranch
54+
```

0 commit comments

Comments
 (0)