This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| gitcommands [2026/02/24 18:30] – created tim45tenwa | gitcommands [2026/02/24 18:33] (current) – tim45tenwa | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ==== Useful git commands ==== | ==== Useful git commands ==== | ||
| + | |||
| + | Add Codeberg as a new remote: | ||
| + | |||
| + | < | ||
| + | git remote add codeberg https:// | ||
| + | </ | ||
| Isolate the folder into a temporary branch: | Isolate the folder into a temporary branch: | ||
| + | < | ||
| git subtree split --prefix=your-subdirectory-name -b split-branch | git subtree split --prefix=your-subdirectory-name -b split-branch | ||
| + | </ | ||
| Push that specific branch to Codeberg' | Push that specific branch to Codeberg' | ||
| + | < | ||
| git push codeberg split-branch: | git push codeberg split-branch: | ||
| + | </ | ||