For example, I modified the Attribute.java file located under c:\passwordmanager, and clicked on the “Rescan” button from the Git GUI, which will display only the changed file (for example: Attribute.java) in the “Unstaged Changes” section. ![]() Whenever you modify a file from this local repository (in this example, c:\passwordmanager), you need to go to Git and stage the changes -> commit the change to the repository. Once you commit, both the “Unstaged Changes” and “Staged Changes” section will be empty. This will commit all the files from the “Staged Changes (Will Commit)” section. Now, you’ll see the “Unstaged Changes” section will become empty, and all the files will be displayed under the “Staged Changes (Will Commit)” section that is located on the bottom left corner.Įnter a commit message on the big text box located on the bottom right corner, and click on “Commit” button. In this example, the source code is located in “c:\passwordmanager”Īll the files located under “c:\passwordmanager” will be displayed under the “Unstaged Changes” section that is located on the top left corner.Ĭlick on the “Stage Changed” button located at the bottom-middle section. Select the directory where the source code is located. If the source code is located in a remote GIT repository, you should use “Clone Existing Repository” option that is explained in the next section. You will create a new repository only when you have the original source code on your local machine, and you like to track the version locally. ![]() Click on “Create New Repository” from here. This will display the following “GIT Menu”. How to Create a Local GIT repository on WindowsĬlick on “Git GUI” from the Windows start menu. If you are planning to checkout files from a remote Git repository that is running on Linux, use the default selection “Checkout Windows-style, commit Unix-style line endings”.ĩ) Installing This will show the progress bar indicating the installation progress.ġ0) Completing the Git setup wizard: Click on finish to exist the setup. ![]() Use the default selections.Ħ) Adjusting your PATH environment: Use the default selection “Use Git Bash Only”.ħ) Choosing the SSH executable: Use the default selection “Use OpenSSH”.Ĩ ) Configuring the line ending conversions: This indicates how Git will treat the line ending in the text files. The installation wizard will walk you through the following 10 screens:ģ) Select Destination folder: By default this will be installed under “C:\Program Files\Git”Ĥ) Select Components: This lets you choose which components of git you like to install. Accept all the default options during installation as shown below. Click on the downloaded executable to start the install process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |