Skip to content

Commit 5a83772

Browse files
authored
Update forking_workflow.md
1 parent d3d1bf5 commit 5a83772

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

forking_workflow.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,18 @@ Now you have access to local, remote (origin), and remote parent (upstream) bran
8585
## 3. Make local changes
8686
In your local repository, feel free to make any changes you'd like. For simplicity, you can create a new file `<YOUR_NAME>_test.txt` and add some text to it. Once that is saved, remember to `git add` and `git commit` your changes:
8787
```
88-
git add . && git commit -m "created new file"
88+
git add .
8989
```
90+
This command adds **all** changes to staging. You can also choose to be more granular here and only add certain files, with `git add <FILE_NAME>`.
91+
Then:
92+
```
93+
git commit -m "create new file"
94+
```
95+
This command creates a commit from the changes in staging, and adds associated commit message.
96+
**Note about commit messages:**
97+
- Messages should be brief but informative. "fix bug" won't be too useful a year later.
98+
- Current standard is to use imperative mood, "write an awesome function" instead of "wrote and awesome function"
99+
- More info in this post: https://cbea.ms/git-commit/
90100

91101
### **To do this in VSCode:**
92102

0 commit comments

Comments
 (0)