Now that Git is installed, I recommend setting up a global git config, including your email and name to be associated with commits. Git version displayed in Git Bash Configure Name and Email for Commits Once the installation is complete, close the installer and go to Start menu > Git > Git Bash to start the git-bash command line and run git -version to confirm that Git is installed correctly. You may want to adjust settings for your particular workflow or preference. I use mostly the default installation options and they have worked just fine for me. Run the installer and choose the options you want. many tutorials that involve issuing git commands do so using the command line because the commands are the same on all platforms different GUIs have different ways of creating a branch, for example, while with a command line it’s always git branch name-of-branch if you are on Windows, OS X, or Linux.įirst, install Git for Windows from. you may end up in a situation where you don’t have access to a Git GUI for some reason so you should be familiar with the command line, and.there are some commands a GUI may not be able to perform,.I believe it’s worth learning to use Git via the command line because It seems “closer to the metal” for me and doesn’t preclude using any of those tools also, so why not? I also prefer using Git Bash that comes with it for command line work instead of the Windows default command line or PowerShell. I’ve tried GitHub Desktop, GitKraken, SourceTree, and other programs that “include” Git automatically, but ultimately I prefer to have Git for Windows installed first so that I’m not totally dependent on a particular company’s implementation or “flavor” of Git. I did run through these steps again as I just reinstalled Windows 10 and needed to get this all set up for the rare occasion I need to work on a project in Windows. This post will cover how I install and configure Git to work smoothly in Windows.ĭisclaimer: I don’t do much web development in Windows these days, and most of this was written a couple of years ago with a few recent edits to bring things up to date. Like most of the web industry, I use Git for version control, and so far I’ve mainly worked with GitHub remotes, so that’s what I’m set up for now.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |