git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
git [2023/05/08 18:02] – [Resolving a Merge Conflict] dblume | git [2023/06/21 09:22] – [git] dblume | ||
---|---|---|---|
Line 24: | Line 24: | ||
git@fake.github.com: | git@fake.github.com: | ||
</ | </ | ||
+ | |||
+ | Eventually, if you want to add another branch to a single-branch clone: | ||
+ | |||
+ | git remote set-branches --add origin another-branch | ||
+ | |||
+ | Or to de-single-branch-ize a clone: | ||
+ | |||
+ | git remote set-branches origin " | ||
+ | |||
===== Creating a new remote repository from an existing local one ===== | ===== Creating a new remote repository from an existing local one ===== | ||
Line 121: | Line 130: | ||
< | < | ||
- | git mergetool | + | git mergetool |
- | # +----------+-----------+--------------+ | + | # +----------+-----------+------------------+ |
- | # | | (common) | + | # | (others) |
- | # | LOCAL | BASE | REMOTE | + | # | LOCAL | BASE | REMOTE |
- | # +-------------------------------------+ | + | # +-----------------------------------------+ |
- | # | | + | # | |
- | # | temp files with <<< | + | # | temp file with <<< |
- | # +-------------------------------------+ | + | # +-----------------------------------------+ |
- | # | + | |
+ | git commit -a -m " | ||
+ | </ | ||
+ | |||
+ | Possibly keep rebasing. | ||
+ | < | ||
+ | git rebase --continue | ||
+ | git pull | ||
</ | </ | ||
git.txt · Last modified: 2024/04/11 16:58 by dblume