git
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Previous revisionNext revision | |||
— | git [2023/07/04 13:03] – odefta | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Undo last commit ====== | ||
+ | |||
+ | git reset HEAD~1 | ||
+ | |||
+ | ====== Rename default branch master ====== | ||
+ | |||
+ | git config --global init.defaultBranch main | ||
+ | | ||
+ | This was done for ethical reasons. \\ | ||
+ | If the default ' | ||
+ | < | ||
+ | hint: Using ' | ||
+ | hint: is subject to change. To configure the initial branch name to use in all | ||
+ | hint: of your new repositories, | ||
+ | hint: | ||
+ | hint: git config --global init.defaultBranch < | ||
+ | hint: | ||
+ | hint: Names commonly chosen instead of ' | ||
+ | hint: ' | ||
+ | hint: | ||
+ | hint: git branch -m < | ||
+ | </ | ||
+ | |||
+ | |||
git.txt · Last modified: 2023/11/28 23:35 by odefta