Gitのerror(解決したもの)
この記事の読者(this article of a reader )
- gitで悩んでいる人(もしかしたら同じ問題にあっているかも).
※英語とか日本語とかいろいろで書いています。自分のメモをコピペしました。
rebaseを取り消し
サイトリンク
http://tobysoft.net/wiki/index.php?git%2Fgit%20rebase%A4%F2%B8%B5%A4%CB%CC%E1%A4%B9%CA%FD%CB%A1
Learning a Git
#作業Aのbranchを作成
1.Git fetch origin
2.git checkout -b work/A origin /master
#作業Bのブランチを作成
Git fetch origin
Git checkout -b work /B
※in this situation , you forgot what is the parent branch
Git でやらかした時に使える
https://qiita.com/muran001/items/dea2bbbaea1260098051
Git 実践サイト
rebaseとmargeの違い
リベースはマージと比べて、もっと単純明快な直線的な履歴になるので、開発履歴がとても読みやすくなるというメリットがあります!
貼り付け元 <https://liginc.co.jp/web/tool/79390>
Git of merge and rebase in detail
gitの履歴の中の一つを確認するとき
Using site
https://www.atlassian.com/git/tutorials/rewriting-history/git-reflog
From this experience
I learned a lot of things
・commit name is really important
Because you wanna change the history of your branch the more you want to do specific thing
And but you didn’t add the name exactly
And finally, you’re really straggling with finding the commit
To prevent these kinds of situations, you need to do the name exactly.
Git–help
diff Show changes between commits, commit and working tree, etc
https://qiita.com/shibukk/items/8c9362a5bd399b9c56be
特定のcommitだけを取り込む
Git cherry pick
After I did git cherry pick -n []
After I did cherry-picjk , some problem was occur
File caused error
Because unexpectation error
・how to reset the update ?
Git checkout .
Also I did a git stash
gitのファイルを削除したい。I want to delete a some file from my local repository
$ git rm FILENAME
貼り付け元 <https://www-he.scphys.kyoto-u.ac.jp/member/shotakaha/dokuwiki/doku.php?id=toolbox:git:rm:start>
https://www-he.scphys.kyoto-u.ac.jp/member/shotakaha/dokuwiki/doku.php?id=toolbox:git:rm:start
インデントエラー?
インデントエラーが引き起こす問題。
・インデントがありすぎて、localhostが表示されなくなる。また、遅くなる。
また、具体的に起こったわかりにくいエラー
解決策
・グーグルで調べる
Lint error
・ no-eol-whitespace
https://stylelint.io/user-guide/rules/no-eol-whitespace
https://github.com/stylelint/stylelint/issues/1273
・ function-comma-space-after
https://stylelint.io/user-guide/rules/function-comma-space-after
・value-list-comma-space-after
https://stylelint.io/user-guide/rules/value-list-comma-space-after
・ font-family-no-missing-generic-family-keyword
https://stylelint.io/user-guide/rules/font-family-no-missing-generic-family-keyword
最終的に、ある程度のエラーは、調べて解決することができました。そのうちの何個かは、解決できなかったです。
Git merge
gitをわかりやすくまとまっているサイト
https://qiita.com/gold-kou/items/7f6a3b46e2781b0dd4a0
font-fileを開いてしまったことによるエラー
解決策
Font-fileは、なるべく開かないようにする。
解決のときに参考にしたサイト
Git checkout rebase I did the thing
And after I did a npm start ., the develop branch is updated
Right now , I’m tying to vanish a rebase of data
I did
1.git reflog
2.git rebase -I HEAD ~3
※I need to confime what is the number of head
3.change the pick into the drop
4.esc-shift+z+z
And the commit would be delete
Finally, I’ve sucessed
Some attention point
I could not have used the command that “git rebase -I HEAD~13”
I could have used “git rebase -I HEAD~7 “
The attention of operation in the sky-blue screen
Before I try to change the pick to drop, I need to do “c common “