Learning Source Control with Git and SourceTree: A Hands-On Guide to Source Control for coders and non-coders by Roger Engelbert

Learning Source Control with Git and SourceTree: A Hands-On Guide to Source Control for coders and non-coders by Roger Engelbert

Author:Roger Engelbert [Engelbert, Roger]
Language: eng
Format: azw3
Publisher: E Publishing
Published: 2017-08-01T04:00:00+00:00


But what happens if you remove a file which has been previously added to the repo?

Let's find out with the following steps:

Create a new file in your repo and this time commit it. Open this file and make some change to it, and save it.

Notice the yellow icon with an ellipsis. This means there is a change to an already committed file.

Figure 5.3. Previously added file with an uncommitted update

Right click on the file and choose Remove, and then confirm it. (Or click on the ... button for that file and select Remove file)

Notice the new icon. A red icon with a dash. This means a committed file is being deleted from the repo. You will require a new commit where the file is removed.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.