Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
development:git:start [2020/03/19 13:00] kalenpw created |
development:git:start [2021/07/01 10:24] (current) kalenpw |
||
---|---|---|---|
Line 5: | Line 5: | ||
---- | ---- | ||
===== Branches and Merging ===== | ===== Branches and Merging ===== | ||
- | - '' | + | - '' |
- make your changes in development branch | - make your changes in development branch | ||
- '' | - '' | ||
- '' | - '' | ||
- | - '' | + | - '' |
- | - when ready to merge, still on dev branch | + | - when ready to merge, still on new-branch |
- '' | - '' | ||
- '' | - '' | ||
- | - '' | + | - '' |
- '' | - '' | ||
+ | |||
+ | ---- | ||
+ | ===== Replace one branch with another ===== | ||
+ | Useful if working on complete overhauls in a separate branch | ||
+ | <code bash> | ||
+ | git checkout better_branch | ||
+ | git merge --strategy=ours master | ||
+ | git checkout master | ||
+ | git merge better_branch | ||
+ | </ | ||
---- | ---- | ||
Line 34: | Line 44: | ||
git remote set-url origin git@github.com: | git remote set-url origin git@github.com: | ||
</ | </ | ||
+ | ---- |