general:git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
general:git [2021/12/20 09:23] – sunkan | general:git [2021/12/20 09:27] – sunkan | ||
---|---|---|---|
Line 17: | Line 17: | ||
< | < | ||
$ git format-patch -k -o ~/ | $ git format-patch -k -o ~/ | ||
+ | </ | ||
+ | |||
+ | Check if a forced update is pending | ||
+ | < | ||
+ | $ git fetch --dry-run | ||
+ | remote: Enumerating objects: 26, done. | ||
+ | remote: Counting objects: 100% (26/26), done. | ||
+ | remote: Compressing objects: 100% (15/15), done. | ||
+ | remote: Total 26 (delta 12), reused 21 (delta 7), pack-reused 0 | ||
+ | Unpacking objects: 100% (26/26), done. | ||
+ | From https:// | ||
+ | + 1ec508d...c046c5f 1.x -> origin/ | ||
+ | |||
</ | </ | ||
Update local branch when we know there is going to be a forced update | Update local branch when we know there is going to be a forced update | ||
< | < | ||
- | $git checkout master # Needs to be performed before doing fetch | + | $ git checkout master # Needs to be performed before doing fetch |
- | $git fetch | + | $ git fetch |
- | $git branch -D 1.x | + | $ git branch -D 1.x |
- | $git checkout -b mybranch-1.x origin/1.x | + | $ git checkout -b mybranch-1.x origin/1.x |
</ | </ | ||
general/git.txt · Last modified: 2023/01/30 08:53 by sunkan