After a few Git commands, I find my command line prompt change from
[master]>
to
[master +1 ~0 -0 !]>
What does this mean?
After a few Git commands, I find my command line prompt change from
[master]>
to
[master +1 ~0 -0 !]>
What does this mean?
This represents the number of files:
You can see a powershell version of that prompt here.
Those represent the status before commit (added means added to the index, or 'staged')
Here is a more complete version of that prompt, which also display the number of commits ahead or behind an upstream repository.
When you do some changes and commit them, your state is 1 commit ahead of remote. It is very useful to know how many commits you have unpushed.
And:
Usually there is no conflict, but sometimes it occurs (for example when a file is changed in both your local repository and the online repository, and you want to pull. So Git doesn't know which one to keep).
In these cases, you have to correct and save the conflicting file (that is already marked by Github, showing the conflicting lines) manually.
Since you do have a conflict (!). Type: git status -to find out which folder has the conflict.