Note that all the icons remain the same in this list, so you can easily tell which type of change was staged for a given entry.Īt this point, you would be ready to “commit” these changes to your local repository, if desired. I can “stage” all of these changes at once by clicking the green, “Stage all changes” button in the area above the “Unstaged Files” list -Ĭlicking this button will move all of the lines shown from “Unstaged Files” to “Staged Files”. The green plus icon indicates a new file was created. The red dash icon indicates a file was deleted. The yellow pencil icon indicates a change was made to a file. You can see in the following screenshot, all three of these types of changes waiting to be staged. With all three of these types of changes, nothing is ready to commit until we “stage” them. If you delete a file that was previously being tracked.If you add a new file to the repository (that isn’t being ignored by git - we’ll dive into git ignore files soon, too!), it will simply exist on disk, and git will know it’s new, but again if you commit now, nothing would actually happen. ![]() We have to tell git that the changed file should be committed by “staging” it. If you were to perform a commit on the repository right now, nothing would actually happen.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |