To save the changes in the git repository: Suppose the files are being changed and new files are added to local repository. Now in the GitHub repository, the pushed files can be seen. Here the files have been pushed to the master branch of your repository. Step 3: Push the changes in your local repository to GitHub. Step 2: In the Command prompt, add the URL for your repository where your local repository will be pushed. How to install maven in git bash code#Step 1: Go to Github repository and in code section copy the URL. Now After “git status” command it can be seen that nothing to commit is left, Hence all files have been committed. Step 8: Commit the files that you’ve staged in your local repository. Step 7: By “git status” you can see the staged files Step 6: Stage the files for the first commit by adding them to the local repository git add. Step 5: Initialize the local directory as a Git repository. Step 4: Open Git Bash and change the current working directory to your local project by use of cd command. Step 3: The following will appear after creating the repository So to avoid running into a snag while trying to push your files (as in step 3 of next section), after step 5 (where you initialize your local folder as your git repository), do following to pull that file to your local folder: git pull But if you do initialize your repo with a README file using interface provided by GitHub, then your local repository won’t have this README file. It helps people know what this repository is about. Note: You can choose to initialize your git repository with a README file, and further, you can mention your project details in it. Step 2: Give a suitable name of your repository and create the repository Set your email address: git config -global user.email Initializing a Local repositoryįollow the steps given below to initialize your Local Repository with Git: Set your username: git config -global user.name "FIRST_NAME LAST_NAME" Open Git Bash and begin creating a username and email for working on Git Bash. Syntax: ls Set your global username/email configuration Ls command is used to list all the files and folders in the current directory. To navigate between the folders the cd command is used ![]() To open Git Bash navigate to the folder where you have installed the git otherwise just simply search in your OS for git bash.Ĭd command refers to change directory and is used to get into the desired directory. Step 4: Let the installation process finish to begin using Git Bash. How to install maven in git bash how to#Step 3: Select how to use the Git from command-line and click on Next to begin the installation process. Step 2: Select the components that you need to install and click on the Next button. Once downloaded execute that installer, following window will occur:. How to install maven in git bash .exe#exe file installer for Git Bash can be downloaded from Installing Git Bashįollow the steps given below to install Git Bash on Windows:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |