jhvanderschee / hugocodex

A website for front-end developers who want to learn Hugo.
http://hugocodex.org
22 stars 11 forks source link

contributing - workflow issue ... ? #27

Closed fenix011 closed 7 months ago

fenix011 commented 7 months ago

Hi! Well... while trying to bring some doc. / content changes , i find myself :

[..]
 Untracked files:
  (use "git add <file>..." to include in what will be committed)
    content/en/posts/base-template.md

no changes added to commit (use "git add" and/or "git commit -a")
fenix@anka4 ~/hugocodex (main)$ git add content/en/
fenix@anka4 ~/hugocodex (main)$ gs
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
  (use "git push" to publish your local commits)

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
    new file:   content/en/posts/base-template.md
    modified:   content/en/posts/spanish-language-added.md

fenix@anka4 ~/hugocodex (main)$ gcm " base-blocks templating (draft) "
[main 8ac0a7d]  base-blocks templating (draft)
 2 files changed, 37 insertions(+), 1 deletion(-)
 create mode 100644 content/en/posts/base-template.md
fenix@anka4 ~/hugocodex (main)$ git push
Enumerating objects: 27, done.
Counting objects: 100% (27/27), done.
Delta compression using up to 4 threads
Compressing objects: 100% (17/17), done.
Writing objects: 100% (17/17), 2.52 KiB | 368.00 KiB/s, done.
Total 17 (delta 12), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (12/12), completed with 9 local objects.
remote: error: GH006: Protected branch update failed for refs/heads/main.
remote: error: Changes must be made through a pull request.
To github.com:jhvanderschee/hugocodex.git
 ! [remote rejected] main -> main (protected branch hook declined)
error: failed to push some refs to 'github.com:jhvanderschee/hugocodex.git'
fenix@anka4 ~/hugocodex (main)$ git remote -v 
origin  git@github.com:jhvanderschee/hugocodex.git (fetch)
origin  git@github.com:jhvanderschee/hugocodex.git (push)
fenix@anka4 ~/hugocodex (main)$ 

what am i missing ? groet ! thanks !

cheers :-)

jhvanderschee commented 7 months ago

I removed branch protection... can you try again?

fenix011 commented 7 months ago

Thanks ! Groet !