Skip to content

Commit 2801dec

Browse files
author
Jeff Bogue
committed
Add comments to Git Simple Cycle
1 parent 92ba5b8 commit 2801dec

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

handout.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ This is the Git notes from the 2-day training session at ImprovingEnterprises on
55
### Git Simple Cycle
66

77
1. Write Code
8+
* Changes to files are stored in the local directory
89
1. `git add .`
10+
* Changes are noted in the index area
911
1. `git commit -m "meaningful comment"`
12+
* Changes are committed to the local repository
1013
1. Repeat as often as you need
1114

1215
### Overview of the Main Git Structures
@@ -45,6 +48,14 @@ Show status of repo
4548
```
4649
git status
4750
```
51+
Discard changes made to a specific file and restore it
52+
```
53+
git checkout -- filename
54+
```
55+
Delete a branch from a repo
56+
```
57+
git branch -D branchName
58+
```
4859
### Working Locally
4960
Start git at a folder
5061
```

0 commit comments

Comments
 (0)