I have a local VS Code project where I have 7 branches and several commits, I need to upload my project to GitHub, I had used 'Add Remote' command in VS Code but it uploads only that branch which is currently opened, is there any git command to upload entire branches at once?
Asked
Active
Viewed 71 times
2 Answers
2
To push all branches up to GitHub at once (instead of pushing each one individually):
Open your command line, navigate to the project root, and run git push --all origin
(assuming “origin” is the name of your remote).

JBallin
- 8,481
- 4
- 46
- 51
0
While remote support was added in VSCode 1.33, as part of PR -- Pull Request -- 60640, this comment illustrates that a git push --all origin
is not yet supported by the GUI itself.
Hence the recommendation of using the command-line equivalent to push everything from one repository.

VonC
- 1,262,500
- 529
- 4,410
- 5,250