-
Notifications
You must be signed in to change notification settings - Fork 7
Home
Masatoshi Abe edited this page Mar 1, 2022
·
1 revision
Welcome to the hp_management wiki!
マージしたpull requestについてさらなる訂正がみつかった
→既存記事の編集 とほぼ同じ、作業するbranchはマージ前に作業していたものと同じものを使用
pushしようとしてremote: Permission to oumpy/hp_management.git denied to [yourname]に遭遇したとき
→個人のレポジトリとかでpushできるか確認。そのとき”[email protected]: Permission denied (publickey).”などでれば認証がうまくいってないかも
pushしようとして error: src refspec [ブランチ名] does not match any error: failed to push some refs to 'https://github.com/oumpy/hp_management.git' →→git show-refでブランチの名前が正しいか確認、実はスペースが入ってたりするかも
https://qiita.com/shizuma/items/2b2f873a0034839e47ce のように パスワードでの認証からssh認証に切り替えるとうまくいった(abebe9849)
sourcetree というGUIツールで、pushできないとき(one23)
→https://kohimoto.com/labo/study/system/sourcetreeで403エラーがでた時の対処法/
fatal: 'origin' 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.
→git remote add origin https://github.com/oumpy/hp_management.git
git branch --contains #現在のbranchを確認
git checkout master #一旦masterに移動
git pull origin master #masterブランチを oumpy/master からプルして master と oumpy/master を一致させる の作業
git checkout -b [ブランチ名] #作業用ブランチを作成、移動
#git branch -d [ブランチ名] で消去もできる
#git branch -a でブランチの一覧を確認
##このタイミングで~~.mdをいじる
## 編集する前の[ブランチ名]とoumpy/masterが一致していなくても、git addするものさえ衝突がおきなければOK
git add [作業した~~.mdの絶対/相対パス]
git commit -m "[作業内容を自分以外にもわかるように努めて書く]"
git push -u origin [ブランチ名] #*errorがあれば認証を確認
- プレビューのURLの後ろがブランチ名に対応していることを知らずに違うブランチのプレビューを見ていた
- masterにpushできなかった...oumpyのmemberへの招待or github tokenの使用
- ipynbだけでは記事が表示できなかった...nbdataも作成