Fix up Author info
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Just enough Git to use it by yourself
|
||||
author: james
|
||||
author: James McDonald
|
||||
type: post
|
||||
categories:
|
||||
- tech
|
||||
@@ -66,7 +66,7 @@ _Note: you can take most of these actions with integrations in editors, for exam
|
||||
In order for Git to be able to show who made changes, it needs to know your name and email address. You can configure those globally as follows:
|
||||
|
||||
```
|
||||
git config --global user.email james@example.com
|
||||
git config --global user.email James McDonald@example.com
|
||||
git config --global user.name "James McDonald"
|
||||
```
|
||||
|
||||
@@ -108,7 +108,7 @@ git status
|
||||
|
||||
You will get output something like:
|
||||
```
|
||||
PS C:\Users\james\Documents\learning-git> git status
|
||||
PS C:\Users\James McDonald\Documents\learning-git> git status
|
||||
On branch main
|
||||
Your branch is up to date with 'origin/main'.
|
||||
|
||||
@@ -141,7 +141,7 @@ Let's try actually changing something to get a feel for this. Create a file in t
|
||||
Try `git status` again:
|
||||
|
||||
```
|
||||
PS C:\Users\james\Documents\learning-git> git status
|
||||
PS C:\Users\James McDonald\Documents\learning-git> git status
|
||||
On branch main
|
||||
Your branch is up to date with 'origin/main'.
|
||||
|
||||
@@ -155,8 +155,8 @@ nothing added to commit but untracked files present (use "git add" to track)
|
||||
Now it sees there is a file that's not currently being tracked by Git, and even points you at `git add` if you want to track it. Let's do that.
|
||||
|
||||
```
|
||||
PS C:\Users\james\Documents\learning-git> git add hello.txt
|
||||
PS C:\Users\james\Documents\learning-git> git status
|
||||
PS C:\Users\James McDonald\Documents\learning-git> git add hello.txt
|
||||
PS C:\Users\James McDonald\Documents\learning-git> git status
|
||||
On branch main
|
||||
Your branch is up to date with 'origin/main'.
|
||||
|
||||
@@ -170,7 +170,7 @@ Now we've updated git's "staging area" with our new `hello.txt`. As that's the o
|
||||
### Committing changes
|
||||
|
||||
```
|
||||
PS C:\Users\james\Documents\learning-git> git commit -m "Add hello.txt in case of Jedi"
|
||||
PS C:\Users\James McDonald\Documents\learning-git> git commit -m "Add hello.txt in case of Jedi"
|
||||
[main dc4c57c] Add hello.txt in case of Jedi
|
||||
1 file changed, 1 insertion(+)
|
||||
create mode 100644 hello.txt
|
||||
@@ -185,14 +185,14 @@ Now you can push the changes back to GitHub.
|
||||
### Pushing changes
|
||||
|
||||
```
|
||||
PS C:\Users\james\Documents\learning-git> git push
|
||||
PS C:\Users\James McDonald\Documents\learning-git> git push
|
||||
Enumerating objects: 4, done.
|
||||
Counting objects: 100% (4/4), done.
|
||||
Delta compression using up to 4 threads
|
||||
Compressing objects: 100% (2/2), done.
|
||||
Writing objects: 100% (3/3), 321 bytes | 160.00 KiB/s, done.
|
||||
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
|
||||
To github.com:jamesmcdonald/learning-git.git
|
||||
To github.com:James McDonaldmcdonald/learning-git.git
|
||||
d39641c..6e26f46 main -> main
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user