Hacktoberfest 2021!マイセカンド


10月の第2週、別のプルリクエスト(PR)を作りました.プロジェクトと私の大きな間違いを紹介します😂

プロジェクト
このプロジェクトは、瞑想のアプリ反応で作成されました.JSとBootstrappedを作成する反応アプリを作成します.
プロジェクトレポ:https://github.com/akshat157/meditate-app

問題
問題は、フォントを変更して、リポジトリの所有者の一人は、現在のフォントは時代遅れに見えると述べた.
問題:https://github.com/akshat157/meditate-app/issues/32

何をした
私は、Googleフォントを開いて、多くのフォントを見ました.私はデザイン側を研究していなかったので、私は非常に確信していませんでした、しかし、私はバーロウとMavenプロフォントを選びました.


プルリクエスト
話をするつもりだった.でも!

問題があった😨😨😨
貢献する.MDはメインブランチにプッシュしないと言います.
私は私のフォークレポと支店を削除し、すべてを再起動するつもりだった.しかし、私は
理研😭 より良い理解のために.彼はすぐに私を助けてくれた.

どうやって解決したの?
まず第一に、彼は私が以下のコマンドをすることを提案しました.
$git checkout -B issue-32 c9dbd88
$git checkout main
$git pull upstream main
$git checkout issue-32
$git rebase main
しかし、私のプッシュとマージはまだ以下のようでした
PS C:\Users\Mizuho\meditate-app> git checkout -B issue-32 c9dbd88
Switched to and reset branch 'issue-32'
PS C:\Users\Mizuho\meditate-app> git checkout main
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
PS C:\Users\Mizuho\meditate-app> git pull upstream main
From https://github.com/akshat157/meditate-app
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> upstream/main
warning: refname 'd327d53e852a17353ecb297da2f819ac7bceee0f' is ambiguous.
Git normally never creates a ref that ends with 40 hex characters
because it will be ignored when you just specify 40-hex. These refs
may be created by mistake. For example,
  git switch -c $br $(git rev-parse ...)
 where "$br" is somehow empty and a 40-hex ref is created. Please
 examine these refs and maybe delete them. Turn this message off by
 running "git config advice.objectNameWarning false"
Already up to date.
PS C:\Users\Mizuho\meditate-app> git checkout issue-32
Switched to branch 'issue-32'
PS C:\Users\Mizuho\meditate-app> git rebase main
First, rewinding head to replay your work on top of it...
Fast-forwarded issue-32 to main.
PS C:\Users\Mizuho\meditate-app> git status
On branch issue-32
nothing to commit, working tree clean
PS C:\Users\Mizuho\meditate-app> git log
Merge: d327d53 c9dbd88
Author: MizuhoOkimoto <[email protected]>
    Merge branch 'issue-32' into main
commit c9dbd884650c1a1abb324822d8d08e1fd7521eae
Author: MizuhoOkimoto <[email protected]>
Date:   Fri Oct 15 18:14:45 2021 -0400
    Add font family Barlow and Maven Pro
彼は私がリモートにしなかったことを指摘した.私は、ちょうど枝をつくりました.私は新しいブランチを作り、' dev 'ブランチにフェッチしてマージするプルコマンドを使用して、それを再利用しました.
PS C:\Users\Mizuho\meditate-app> git checkout dev
Switched to branch 'dev'
Your branch is up to date with 'origin/dev'.
PS C:\Users\Mizuho\meditate-app> git pull upstream dev
From https://github.com/akshat157/meditate-app
 * branch            dev        -> FETCH_HEAD
 * [new branch]      dev        -> upstream/dev
Already up to date.
PS C:\Users\Mizuho\meditate-app> git checkout issue-32
Switched to branch 'issue-32'
PS C:\Users\Mizuho\meditate-app> git rebase dev
Current branch issue-32 is up to date.
PS C:\Users\Mizuho\meditate-app> git push origin issue-32
Total 0 (delta 0), reused 0 (delta 0)
remote:
remote: Create a pull request for 'issue-32' on GitHub by visiting:
remote:      https://github.com/MizuhoOkimoto/meditate-app/pull/new/issue-32
remote:
To https://github.com/MizuhoOkimoto/meditate-app.git
私はメイン($git checkout main)に切り替えて、$git logをしました、しかし、主は私のプッシュにまだ頭がありました.彼は私に資本- Bコマンドでそれをするように言った.
PS C:\Users\Mizuho\meditate-app> git checkout -B main upstream/main
Reset branch 'main'
warning: refname 'd327d53e852a17353ecb297da2f819ac7bceee0f' is ambiguous.
Git normally never creates a ref that ends with 40 hex characters
because it will be ignored when you just specify 40-hex. These refs
may be created by mistake. For example,
  git switch -c $br $(git rev-parse ...)
where "$br" is somehow empty and a 40-hex ref is created. Please
examine these refs and maybe delete them. Turn this message off by
running "git config advice.objectNameWarning false"
Branch 'main' set up to track remote branch 'main' from 'upstream'.
Your branch is behind 'origin/main' by 3 commits, and can be fast-forwarded.

メインブランチログ.
私のプッシュとメインブランチのマージはなくなっていた!😇
私はついにprrを作りました.
広報:https://github.com/akshat157/meditate-app/pull/35

結論
私はこのPRに注意しなかったし、私は間違いをした.たとえそれが起こったとき、私はその週を修正して、再ベースについて知ったけれども.しかし、私は自分でそれを解決できなかった.次回はぜひ、投稿部署をもっとお読みしましょう!
ハッピーハックバーフェスト!🎃
(写真)