Silver Library (Archived)
Git - why git push is not working on VSCode? 본문
Problem.
I had no idea why on earth I cannot upload my work through VScode terminal.
git push origin master
git push -u origin master
None of them worked...why?
Solution.
You must pull your repository first as soon as you set this:
1. git remote add origin "your repository URL"
2. git pull origin master --allow-unrelated-histories
Oh my god...Guess I have to use Github Desktop for this repository...or maybe another solution exists.
Found the solution! Check this if you are suffernig from the branch name issue!
docs.github.com/en/github/administering-a-repository/changing-the-default-branch
Source:
yangsu.github.io/pull-request-tutorial/
stackoverflow.com/questions/292357/what-is-the-difference-between-git-pull-and-git-fetch
gitbetter.substack.com/p/how-to-change-git-default-branch
'Personal DB' 카테고리의 다른 글
Python If, else (0) | 2021.02.23 |
---|---|
Python - List, and further (append, remove...) (0) | 2021.02.23 |
Git - How to use reset (back to the previous commit)? (0) | 2021.02.22 |
Python - grammar note & example (0) | 2021.02.22 |
Git - EP 1 (0) | 2021.02.20 |