![]() git reset -hard Now on adding hard we have removed the changes from all three stages of the local repository.git reset This removes the saved changes permanently from the staging area and the git repository, but the removed changes are still saved in the working directory.This way now we can still check out to our previous commits. This means that you created another picture that deletes the existence of pic3 and pic4. Now you want to delete pic3 and pic4 changes but also don’t want to delete it permanently ( what if the confused dude comes back again having second thoughts on pic3 and pic4!!) revert is to our rescue! What it does is, it creates another commit that deletes the commits we don’t want. He asked for modification! And again the same process of modifying and clicking another picture (click) pic2 … again (click) pic3 … and again ( your client is a confused dude) (click) pic4 … and finally (click) pic5 Wooah! That was a hard task. git revert … write the commit message for your revert changes … shift + : wq Hmmm, to understand this you are a photographer again!! You took a picture for your client (click=commit) pic1, he didn’t like it. ![]() git checkout It moves to the specified commits (commit is mentioned through the id of commit).So your commit is the final picture you clicked. After this, when you got the perfect shot, the final click of the scene is parallel to whatever you save in your git repository in the form of a commit.So whatever you see through the lenses is your staging area. changing lighting, color contrast, positioning of model, etc.) can be done through the lenses is parallel to your staging area. Checking the overall look of all the little changes that you have made (i.e. To check the final look of the whole set up you look through lenses.Here setting up your studio and making little changes is what you call as the working directory.You of course wouldn’t take the final shot until and unless you check how is it going to look through the lenses. For that, you will be doing an initial setting regarding background, brightness, color combination, dress, positioning & posture of the model, etc. Imagine that you are a photographer and you got a project. Let’s try to understand what these three stages are … IT’S STORYTIME!!! In the local repository, we are having three stages: working directory, staging area, and git repository. Here we will be talking about the local repository and later we will go to the remote repository. git folder We have two types of repositories: local and remote repositories git folder = Repository git init //to create a. The other is the remote repository which is the repository in the cloud basically the internet.One is the local repository that is the repository in your local machine which is the pc or laptop that you are working on.There are two types of repositories that you will be working on. Well, in your git terminal go to the folder in which you want to create a. About these individual operations, we will get to know later in this … documentation? How does one create a. Ok, I smell another question coming WHAT ARE GIT OPERATIONS!!! They are push, pull, add, commit, clone, and all other operations you might have seen if you have searched about git before or even heard about it. git folder basically means that git now has control over the folder and we can use git operations on the contents of this folder. Fig 3 - Photo by me (created in PowerPoint Presentation)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |