File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,11 @@ This is the Git notes from the 2-day training session at ImprovingEnterprises on
5
5
### Git Simple Cycle
6
6
7
7
1 . Write Code
8
+ * Changes to files are stored in the local directory
8
9
1 . ` git add . `
10
+ * Changes are noted in the index area
9
11
1 . ` git commit -m "meaningful comment" `
12
+ * Changes are committed to the local repository
10
13
1 . Repeat as often as you need
11
14
12
15
### Overview of the Main Git Structures
@@ -45,6 +48,14 @@ Show status of repo
45
48
```
46
49
git status
47
50
```
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
+ ```
48
59
### Working Locally
49
60
Start git at a folder
50
61
```
You can’t perform that action at this time.
0 commit comments