git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
git [2022/07/12 10:45] – Added --set-upstream-to then pull instead of rebase dblume | git [2022/07/12 10:47] – [Fixing a bug in its own branch in Roku Firmware] dblume | ||
---|---|---|---|
Line 165: | Line 165: | ||
Instead of doing a rebase before commit, stash your changes, set the upstream to origin/ | Instead of doing a rebase before commit, stash your changes, set the upstream to origin/ | ||
- | | + | <code bash> |
- | git branch --set-upstream-to origin/ | + | git stash push -m "hold for pull" |
- | git pull | + | git branch --set-upstream-to origin/ |
- | git stash pop (restores stash on top of main) | + | git pull |
- | git add/ | + | git stash pop (restores stash on top of main) |
- | git push -f origin < | + | git add/ |
+ | git push -f origin < | ||
+ | </ | ||
====== git at dlma.com ====== | ====== git at dlma.com ====== | ||
git.txt · Last modified: 2024/04/11 16:58 by dblume