cd submodule git checkout -b NEWBRANCHNAME COMMITID. Hence enter the dependency root by using cd submodule and use any git command. The following web page explains what push and pull really do. git submodules are repositories inside a repository, hence it has the same behavior as any other git repository. The above web page is part of a useful chapter that is introduced here: The following web page explains more about what commit really does. Pull is what merges other peoples changes into the files you have modified (but not pushed) and what copies the changes others have made to files you have not modified. I thought that Commit makes your changes visible to other people, but I was wrong. This means that Commit does not modify the remote repository by itself, only when you do a Push at the same time or at a later time as a Commit. Staged means that you have marked a modified file in its current version to go into your next commit snapshot. Modified means that you have changed the file but have not committed it to your database yet. Committed means that the data is safely stored in your local database (repository). Git has three main states that your files can reside in: committed, modified, and staged. This is the main thing to remember about Git if you want the rest of your learning process to go smoothly. The major difference between Git and any other VCS (version control system) (Subversion and friends included) is the way Git thinks about its data. If you need to come back to the commit multiple times I would recommend that you create a branch. Here are some highlights from the above page: To checkout a specific commit, locate it in the History view, right-click and either create a branch or checkout the commit. It includes a discussion of: The major difference between Git and any other VCS (version control system). I found the following web page to be very useful.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |