课程: Git from Scratch

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

git add: Add changes

git add: Add changes

- [Narrator] The interesting thing about Git as an omnipotent passive observer of all things is it's very much passive. Until you tell it what you want it to remember, it'll just passively observe the changes that are happening in the project folder but do nothing. When you make a change to your project that you want Git to commit to the history of the project, to take a snapshot of so you can go back to it and review later, your own personal save point, if you will, you first need to place the changes in the staging area. This is done using the git add command. You can specify which files you want to add by naming them or you can add all of them with dash A. By doing this you're telling Git, I've made some changes and I want you to remember these ones in particular so I can recall them later if I want to. This is important because you can pick and choose which changes you want to go into the staging area and these are the…

内容