![]() Now that we have the file and have also made the changes to it by writing a message, we will try to commit the changes. Press enter and the message would be written inside the file. You can see the directory to see that the file has been created successfully (or execute the ls command to verify, refer). For writing something in your file, type the following command in Git Bash Press enter to create the file named harish.txt. I hope we are working in the First Project directory that we created in the tutorial about the Git repositories. After you are in the correct repository. Type the following command Committing the changes in Git without commit messageįor creating a file through Git Bash you have to first create a repository and navigate to this directory as the present working directory.Navigating to another directory through Git Bash ( Refer tutorial).How to Create a Repository (Refer tutorial). ![]() ![]() For this, we need to know few things beforehand. So in this tutorial, we will create a file and try to commit some changes to it. Before committing, we have a staging area where we add the changes. Committing in Git is the last stage of the three stages we discussed in Introduction to Git. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |