Skip to content

Commit 8f50fde

Browse files
committed
add table of contents
1 parent b8c24c6 commit 8f50fde

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

Git Workflows.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
---
22
---
3+
- [Git Workflows](#git-workflows)
4+
- [Forks workflow](#forks-workflow)
5+
- [Cleaning Up Your Work](#cleaning-up-your-work)
6+
- [Diffs between branches](#diffs-between-branches)
7+
- [Reset fork based on upstream](#reset-fork-based-on-upstream)
8+
- [Reset your upstream repository with current](#reset-your-upstream-repository-with-current)
9+
- [Pushing an existing repo with history to a new blank repo](#pushing-an-existing-repo-with-history-to-a-new-blank-repo)
10+
- [List changed files](#list-changed-files)
11+
- [Using worktree](#using-worktree)
312

413
# Git Workflows
514
## Forks workflow
@@ -46,7 +55,6 @@ git rebase main
4655
```
4756
git diff master:foo foo
4857
git diff <local branch> <remote>/<remote branch>
49-
5058
```
5159

5260
## Reset fork based on upstream
@@ -65,7 +73,10 @@ https://stackoverflow.com/a/24768381
6573
```
6674
git remote set-url origin https://new.repo/url
6775
git push origin master --force
68-
# or
76+
```
77+
78+
or
79+
```
6980
git push origin master --force
7081
```
7182

0 commit comments

Comments
 (0)