'How to adding or update more file to github?
I'm new on GitHub. I've been finished my code using Visual Studio 2022. Also I did create and upload my files to GitHub, but I have a mistake and need to edit some code on one my controller. I confused how to upload my file to the existing folder on GitHub.
Thanks for help.
Solution 1:[1]
Make sure your Visual Studio project is connected to your GitHub.
If you edit some code on you Visual Studio project and want to update it on your GitHub. Go to Git on your top left corner.
Then click on Commit or Stash.
Now, on your left side, there should be a new popup box that shows the file(s) you edited on.
Click Commit All, make sure you add some comments on what you've changed.
Finally, clicked the up arrow Push. Then the new changes should be showing on your GitHub
Solution 2:[2]
To add new file you can follow following steps:
- Open home page of your repository
- On the right side of it you will find a option to "Add file" which will have 2 dropdown.From that you can simply select "upload files".
- By clicking on "Upload Files", you will be given option to upload file by browing or by drag and drop.
- There will be option to add comment regarding your file changes if you want to add.you can upload that file to current branch, otherwise you can add new branch and upload it there.
- At the end, click on commit changes.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Sunny |
| Solution 2 | Vishwa |
