[Git] Error Report #1

nunu·2023년 6월 22일

Development Log

목록 보기
1/3

I studied git when I got trained one time. At that time, I just heard about git and never used it before so I was really confused.
They let me follow the instructions from the website. There were practice codes for git orders like commit, push, rebase, merge, and cherrypick. And it also gave me the visualization for branches and commits. I just follow the instructions, with zero understanding of the content.

But, finally, I faced the Git errors and I think that experience help to solve it.

I usually use IntelliJ to write down the codes but when it comes to writing down HTML, it's really uncomfortable cause they don't give auto-completion and formatting in HTML.
So I started to use VS Code.

Using Git in IntelliJ is pretty easy, but I always meet errors when I used Git in the VS Code. The error said a new branch was created (I never created it!) so I couldn't push the commits! In the past, I just remove the new branch. But this time I didn't want to lose to error!

I googled the error, they said I have to merge the new branch to the main branch.

git rebase origin/main

https://cross-the-line.tistory.com/20#:~:text=Git%20Rebase%20%EB%9E%80%20%EB%A7%90%20%EA%B7%B8%EB%8C%80%EB%A1%9C,%EB%A5%BC%20%EC%9E%AC%EC%84%A4%EC%A0%95%ED%95%98%EB%8A%94%20%EA%B2%83%EC%9E%85%EB%8B%88%EB%8B%A4.

And then I push it to the repository! Success!! I conquer this error!

I know it's a very easy thing for a professional developer, but as a developer who is studying, it feels like I had grown up.

profile
Hello, I'm nunu

0개의 댓글