Editing Git init

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
* <code>[[git]] init</code>
+
*<code>[[git]] init</code>
* <code>[[git init --bare]]</code>
+
*<code>[[git init --bare]]</code>
* <code>[[git init --initial-branch=main]]</code>
 
  
== Examples ==
+
==Example==
 
  git init
 
  git init
 
  Initialized empty Git repository in /your/path/[[.git/]]
 
  Initialized empty Git repository in /your/path/[[.git/]]
 
git init --initial-branch=main
 
warning: [[re-init: ignored]] --initial-branch=[[main]]
 
 
 
git init
 
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>
 
Initialized empty Git repository in /private/tmp/git_test/.git/
 
  
 
== Related terms ==
 
== Related terms ==
* <code>[[git config]] --global init.defaultBranch <name></code>
 
 
* <code>[[git add]]</code>, <code>[[git push]]</code>
 
* <code>[[git add]]</code>, <code>[[git push]]</code>
 
* <code>[[bolt project init]]</code>
 
* <code>[[bolt project init]]</code>
 
* <code>[[git remote]]</code>
 
* <code>[[git remote]]</code>
* <code>[[.git/config]]</code>
 
* <code>[[git blame]]</code>
 
* <code>[[remote.origin.url]]</code>
 
  
 
== See also ==
 
== See also ==

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Templates used on this page:

Advertising: