How to push/upload visual studio code/ flutter project to Github

Published: 02 February 2023
on channel: Trio tech solution
5,527
47

steps:
step 1:Create a repository
A repository is where your project lives. Click on the “+” sign on the top right of your GitHub dashboard and select “New repository”. Fill in the required information, like the repository name, and make sure the repository is public.

step 2: Terminal commands
open the terminal in vs code, navigate to your project folder and type “git init” to initialize a Git repository.
Then type “git add .” to add all the files in the folder.
followed by “git commit -m “Initial Commit”” to make a commit.
Finally, type “git remote add origin [repository URL]” to connect your local repository to the GitHub repository,.
then “git push -u origin master” to upload your code.

step 3: Verify the code has been uploaded
Refresh the repository page on GitHub, and you should now see your code files. Congratulations, you have successfully uploaded your code to GitHub!



That's it! You now have your code securely stored on GitHub. If you have any questions, please leave them in the comments section below.


On this page of the site you can watch the video online How to push/upload visual studio code/ flutter project to Github with a duration of hours minute second in good quality, which was uploaded by the user Trio tech solution 02 February 2023, share the link with friends and acquaintances, this video has already been watched 5,527 times on youtube and it was liked by 47 viewers. Enjoy your viewing!