Hello,
I wanted to add automerger.config file to All-Projects but I'm confused what is going on here, see below. Can someone lead me how to achieve the goal please.
jura@brnntbjt01x:~/git$ git clone "ssh://gerrit:29418/All-Projects" && scp -p -P 29418 gerrit:hooks/commit-msg "All-Projects/.git/hooks/"
Cloning into 'All-Projects'...
remote: Counting objects: 96, done
remote: Finding sources: 100% (96/96)
remote: Total 96 (delta 4), reused 14 (delta 4)
Receiving objects: 100% (96/96), 26.96 KiB | 1022.00 KiB/s, done.
Resolving deltas: 100% (4/4), done.
Note: switching to 'bca45e5ab5c7af81837286d436c3b2450c463e70'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
commit-msg 100% 1790 151.7KB/s 00:00
jura@brnntbjt01x:~/git$ cd All-Projects/
jura@brnntbjt01x:~/git/All-Projects$
jura@brnntbjt01x:~/git/All-Projects$
jura@brnntbjt01x:~/git/All-Projects$ git fetch refs/meta/config
fatal: 'refs/meta/config' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
jura@brnntbjt01x:~/git/All-Projects$ git fetch origin refs/meta/config
From ssh://gerrit:29418/All-Projects
* branch refs/meta/config -> FETCH_HEAD
jura@brnntbjt01x:~/git/All-Projects$
jura@brnntbjt01x:~/git/All-Projects$ git status
Not currently on any branch.
nothing to commit, working tree clean
jura@brnntbjt01x:~/git/All-Projects$ git checkout refs/meta/config
error: pathspec 'refs/meta/config' did not match any file(s) known to git
jura@brnntbjt01x:~/git/All-Projects$
jura@brnntbjt01x:~/git/All-Projects$ git branch -r
origin/meta/config
jura@brnntbjt01x:~/git/All-Projects$
jura@brnntbjt01x:~/git/All-Projects$ git checkout origin/meta/config
Warning: you are leaving 21 commits behind, not connected to
any of your branches:
bca45e5 Modify access rules
fe93179 Modify access rules
fd0c700 Modify access rules
cdd9650 Modify access rules
... and 17 more.
If you want to keep them by creating a new branch, this may be a good time
to do so with:
git branch <new-branch-name> bca45e5
HEAD is now at 90d00dc added forgeAuthor and forgeCommiter for tags