>gitinit--initial-branch=main error:unknown option `initial-branch=main' 默认代码块(会报错) Pushan existing folder cd existing_folder git init--initial-branch=main git remoteaddorigin git@gitlab.com:mygit/mypro.git gitadd.git commit-m"Initial commit"git push-u origin main 改进后(不会报错...
$ git init --initial-branch=main error: unknown option `initial-branch=main' usage: git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]] [<directory>] --template <template-directory> directory from which templates will be used --bare create ...
When --graph is not used, all history branches are flattened which can make it hard to see that the two consecutive commits do not belong to a linear branch. This option puts a barrier in between them in that case. If <barrier> is specified, it is the string that will be shown inste...
Line Notes --- # branch.oid <commit> | (initial) Current commit. # branch.head <branch> | (detached) Current branch. # branch.upstream <upstream-branch> If upstream is set. # branch.ab +<ahead> -<behind> If upstream is set and the commit is present. --- Stash Information If--sh...
Show directions on how to proceed from the current state in the output of git-status[1], in the template shown when writing commit messages in git-commit[1], and in the help message shown by git-switch[1] or git-checkout[1] when switching branch. statusUoption Advise to consider usi...
die "$(gettext "You do not have the initial commit yet")" fi if branch=$(git symbolic-ref -q HEAD) then branch=${branch#refs/heads/} else branch='(no branch)' fi msg=$(printf '%s: %s' "$branch" "$head") #
constchar*initial_branch=NULL; inthash_algo=GIT_HASH_UNKNOWN; conststructoptioninit_db_options[]={ OPT_STRING(0,"template",&template_dir,N_("template-directory"), Expand All@@ -541,6 +559,8 @@ int cmd_init_db(int argc, const char **argv, const char *prefix) ...
die "$(gettext "You do not have the initial commit yet")" fi if branch=$(git symbolic-ref -q HEAD) then branch=${branch#refs/heads/} else branch='(no branch)' fi msg=$(printf '%s: %s' "$branch" "$head") #
* Many tests that used to need GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME mechanism to force "git" to use 'master' as the default name for the initial branch no longer need it; the use of the mechanism from them have been removed. * Allow running our tests while disabling fsync. ...
Git Source Code Mirror - This is a publish-only repository and all pull requests are ignored. Please follow Documentation/SubmittingPatches procedure for any of your improvements. - git/git-stash.sh at master · iooly/git