... | ... | @@ -178,7 +178,7 @@ Let's create a file in your git folder and see how this change is shown in git. |
|
|
|
|
|
nothing added to commit but untracked files present (use "git add" to track)
|
|
|
````
|
|
|
We see that there is a file called "fred.txt" that is not yet in the Index, or in the repo.
|
|
|
We see that there is a file called "fred.txt" that is not yet in the Index, or in the repo.
|
|
|
4. Let's do as suggested as add the file with `git add fred.txt`.
|
|
|
5. If we `git status` again we see:
|
|
|
````
|
... | ... | @@ -190,11 +190,11 @@ We see that there is a file called "fred.txt" that is not yet in the Index, or i |
|
|
|
|
|
new file: fred.txt
|
|
|
````
|
|
|
Now we see that there are local changes that have not been committed, but are being tracked.
|
|
|
Now we see that there are local changes that have not been committed, but are being tracked.
|
|
|
|
|
|
Do step 2 to 4 again with a new file called "java.txt".
|
|
|
Do step 2 to 4 again with a new file called "java.txt".
|
|
|
|
|
|
Now when we `git status` we see:
|
|
|
Now when we `git status` we see:
|
|
|
````
|
|
|
On branch master
|
|
|
Your branch is up to date with 'origin/master'.
|
... | ... | |