diff options
author | Warner Losh <imp@FreeBSD.org> | 2023-01-29 02:23:29 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2023-01-29 02:23:29 +0000 |
commit | 1e28a7874537a29cd4b10c6503079d6d7316d2e4 (patch) | |
tree | 3e99f61d8a63b92262e7a0a31e16b45af7f01590 | |
parent | 60326f67313a2b69d73d6394c8fbcdaea57b5310 (diff) | |
download | doc-1e28a78745.tar.gz doc-1e28a78745.zip |
git primer: Fix two errors
Recommend pushing HEAD:main in the vendor branch docs, since that's
always going to be right.
Stop recommending people set push.default to 'freebsd'. It's an
enumerated value that's not a branch name. Most likely correct value
here is 'upstream'. However, there's enough people with asymetrical
setups that I'm just removing the setup rather than describe all the
special cases.
Sponsored by: Netflix
-rw-r--r-- | documentation/content/en/articles/committers-guide/_index.adoc | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/documentation/content/en/articles/committers-guide/_index.adoc b/documentation/content/en/articles/committers-guide/_index.adoc index 2974cf05cd..41ef2a507a 100644 --- a/documentation/content/en/articles/committers-guide/_index.adoc +++ b/documentation/content/en/articles/committers-guide/_index.adoc @@ -425,13 +425,6 @@ For pushing, either specify the full refspec: git push freebsd HEAD:refs/internal/admin .... -Or set `push.default` to `freebsd` which will make `git push` to push the current branch back to its upstream by default, which is more suitable for our workflow: - -[source,shell] -.... -git config push.default freebsd -.... - ==== Keeping Current With The FreeBSD src Tree [[keeping_current]] First step: cloning a tree. @@ -1496,7 +1489,7 @@ After review, when you are sure it is a good change, you can push it to the Free [source,shell] .... -% git push freebsd merge_results:main +% git push freebsd HEAD:main .... === Creating a new vendor branch |