Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[New Command Request] Add an option to pull from origin only, ignoring upstream

オープン
#92 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
git, github, go
領域
cli

調査の方向性

まず、gh classroom pull student-repos の実装と引数解析を追跡し、現在の pull の動作が origin と upstream をどのように考慮しているかを確認します。新しい -o 形式を定義し、upstream との同期を必要とせずに git pull origin main と同等の処理を実行することを検証します。

索引モデルが issue の本文から書いたものです。

説明

enhancement

Is your feature request related to a problem? Please describe.
see #77

This is to avoid the error message:

failed to run gh: can't sync because there are diverging changes; use `--force` to overwrite the destination branch. error: exit status 1

when student repos aren't in sync with upstream (and may not need to be).

Describe the solution you'd like
As well as the current gh classroom pull student-repos command, a version including the -o flag so the execution is equivalent to git pull origin main instead of the default behaviour (which considers the entire fork chain, i.e. both origin and upstream).

Either:

gh classroom pull -o student-repos

or

gh classroom pull student-repos -o

Describe alternatives you've considered
I've both reverted to my pre-gh classroom scripts and to iterating with a simple shell script through the clones in the x-submissions directory to run git pull origin main.

Additional context
Add any other context or screenshots about the feature request here.

主要言語
Go
スター
126
フォーク
21
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

github/gh-classroom のほかの issue

github/gh-classroom の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。