User Tools

Site Tools


git
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Previous revision
Next 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 'master' folder is used, you'll receive the following warning: \\
 +<code>
 +hint: Using 'master' as the name for the initial branch. This default branch name
 +hint: is subject to change. To configure the initial branch name to use in all
 +hint: of your new repositories, which will suppress this warning, call:
 +hint:
 +hint:   git config --global init.defaultBranch <name>
 +hint:
 +hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
 +hint: 'development'. The just-created branch can be renamed via this command:
 +hint:
 +hint:   git branch -m <name>
 +</code>
 +
 +
  
git.txt · Last modified: 2023/11/28 23:35 by odefta