To install GitHub on Windows, go to the GitHub desktop site and download the installer for Windows. Git config -global core.editor "'C:\Sublime Text 3\sublime_text.exe'" Git config -global core.editor "' full path to the executable file'"įor example, if you want Sublime Text to be your default editor, you can write the following command: You can change your default code editor with Git by typing the following command: Git config -global faultBranch main Change your Code Editor When you create a new repository, the default branch name Git creates is called master. $ git config -global user.email Change Default Branch Name $ git config -global user.name "John Titor" You can set your Git Username and Email using git config as follows: To view all your settings, you can use the command: git config -list -show-origin Here are some of the things you can configure: View Git Settings The git config command lets you do just that. While using Git for the first time, you might want to configure a few things. If it is installed correctly, you will see this on your terminal: Now, you can type the git -version command to see whether Git is installed properly. You will now see a terminal window like this: Once you have installed Git, you can launch it from the installation wizard. You can manually configure the options later once you are familiar with Git. But as a beginner, we recommend you select the default options as they are pretty standard. You can choose different options while installing Git. Just keep clicking Next until Git is installed. ![]() If you have a 64-bit Operating System, it won't matter which version you install but for older 32-bit Operating Systems, make sure you install the 32-bit version of Git.Īfter downloading the installer, run it and follow the on-screen instructions. But remember to download the correct version no matter which site you choose. We recommend getting the installer from the official Git site as it is a much lighter package. GitforWindows - You get the option to install Git, Git Bash, and a Git GUI when you install Git from this site.Official Git Site - You get Git and Git Bash installed when you install Git from this site. ![]() You can download the Git installer from two sites: Here is a more detailed installation method for installing Git on Windows: If installed correctly, you will see this on your terminal: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |