![]() ![]() This creates an access token.ĭone! If you go back to the repo on GitHub you will find it populated with your files.Ī similar workflow applies if you use Azure DevOps. Just open a terminal and paste the command:Īfter the second command you will be prompted to login to GitHub. The repository is created, and right there on the default help page is the command for pushing your existing repo to GitHub. ![]() This is a private repository as nobody else needs to see the code for my website. Now go to GitHub and create a new repository. We want to commit everything to form the initial repo, so drop down the git menu (three dots to the right of the source control pane) and choose Commit all, click Yes. Staging in git is where you define which changes will be committed in your next commit. Initially all your files are in an unstaged state. Then select your workspace from the dropdown and the local repository is created. Click the repository icon for Initialize Repository: In VS Code, open the workspace and press Ctrl-Shift-G or click the Source control icon. So this is how I moved my PHP website, which was not under source control, to a private GitHub repository:ġ. How about source control though? I guess as you would expect from Microsoft (which now owns GitHub) the git support is built in. – I am finding VS Code handy as a general-purpose editor – I have a PHP website and have worked out a nice debugging environment using VS Code and WSL (Windows Subsystem for Linux) ![]() – I am working on a Java project and chose to use VS Code in part as a learning exercise Rather to my surprise, I am currently spending more of my development time in Visual Studio Code than in Visual Studio. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |