version control - Using Git, if I have 20 changes and I add - commit - push 5 of them. Will the other 15 still be there? -


I want to ensure that my changes are safe when I add "some" Push them into the branch. I am working on different tasks and do not want to add for some people so far.

Thank you! Yes, GIT is an excellent system for this workflow due to "staging area" or "index"

no -a to git commit , only git add will be upgraded to the next commitment (when If you reduce the number of guitars, then there is a state of the tree index in commitment.)

In fact, you can better per granularity per file - I often use only some Changes to a particular file:

  git add -p whatever.c   

... and selecting only the special changes. (If this change gives you, then you are not okay, you can press s to split down. If this is still too high, then you E can be edited properly.)

As you are preparing things, it is useful to do this often:

  • Git diff

    and:

    • git diff - cached < P> Broadly speaking, git diff shows you unposted changes yet While git diff --cached shows you the changes that is been phased out.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -