

Otherwise, input a passphrase (that you won’t forget!), then hit Enter, then input it again, then hit Enter again. If you only use your GitHub account for CS50, no need to input a passphrase just hit Enter. You’ll then be prompted for a “passphrase” (i.e., password). When prompted to “save the key,” just hit Enter, without typing anything. Open a terminal window, if not open already, within Visual Studio Code, CS50 IDE, CS50 Sandbox, or CS50 Lab.Įxecute ssh-keygen. Odds are you’ll find SSH more convenient for Visual Studio Code and CS50 IDE, and personal access tokens more convenient for CS50 Sandbox and CS50 Lab.

#Visual studio code github password
As of August 13, 2021, that’s no longer possible, which means you can no longer use check50 or submit50 using your GitHub username and password either.īut you can still use check50 and submit50! You just need to log in a bit differently, either using SSH or a personal access token. To push (i.e., save) your code to GitHub using git, it used to be possible to log into GitHub via a command line (as in a terminal window) using a GitHub username and password. from the remote indicator (the green button in the lower left corner of the status bar).Tools like check50 and submit50 rely on git, a popular tool for saving different versions of code, and GitHub, a popular website for saving those versions in the cloud. from the Command Palette, F1, or by choosing Open GitHub Repository.

You can quickly and easily open a GitHub repository either by searching for GitHub Repositories: Open Repository. GitHub Pull Requests and Issues extension Working in Visual Studio Code with a repository uses separate tools. Visual Studio Code tools to work with Git and GitHub Select the ellipsis (.) then select Show Git Output. You can view the Git commands run when you use the Source control extension. Select the ellipsis (.) then select: Push or Push to.

Select the Source Control icon from the activity bar. If you have just one remote, you won't be asked to select the remote name. Select the remote name from the pop-up box. On the Visual Studio Code status bar, select the push icon to the right of the branch name. If you have multiple upstream remotes, select the remote then press Enter.In the command palette, filter with Git then select Push.Open the command palette with the key combination of Ctrl + Shift + P.If you don't have a GitHub repository yet, but would like to start your project locally, initialize your folder with git. Open an integrated terminal from Terminal -> New Terminal.Ĭlone your repo with the following git command: git clone Ĭhange your terminal into that new subdirectory: cd YOUR-REPO-NAME When you receive the notification asking if you want to open the cloned repository, select Open. Select (or create) the local directory into which you want to clone the project. If you are asked to sign into GitHub, complete the sign-in process.Įnter azure-samples/js-e2e-express-server in the Repository URL field. When prompted for the Repository URL, select clone from GitHub, then press Enter. Open the command palette with the key combination of Ctrl + Shift + P.Īt the command palette prompt, enter gitcl, select the Git: Clone command, and press Enter.
