Skip to content

Commit 69b95ff

Browse files
author
Matt Thompson
committed
Reformat usual git process section
1 parent dfbaaf4 commit 69b95ff

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/wiki-guide/Command-Line-Cheat-Sheet.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ See also [GitHub's Markdown Guide](https://docs.github.com/en/get-started/writin
2929
| `git checkout <branch>` | checkout branch |
3030
| `git branch -d <branch>` | delete branch |
3131

32-
**Usual Process:**
33-
After making changes to a file, check the status of your current working branch (with `git status`). Then, you "add" the file, state what is new about the file ("commit the change"), and `push` the file from your local copy of the repo to the remote copy:
32+
#### Usual Process
33+
After making changes to a file on a branch, check the status of your current working branch (with `git status`). Then, you "add" the file, state what is new about the file ("commit the change"), and `push` the file from your local copy of the repo to the remote copy:
3434

3535
```bash
3636
git add <filename>
@@ -41,10 +41,10 @@ git push
4141

4242
```
4343

44-
**Note:** If you need to update your branch with changes from `main`, first switch to the branch, then set pull from `main` instead of the current branch, as below.
44+
!!! note Note
45+
If you need to update your branch with changes from the remote `main`, first switch to the branch, then set pull from `main` instead of the current branch, as below.
46+
```bash
47+
git checkout <branch>
4548

46-
```bash
47-
git checkout <branch>
48-
49-
git pull origin main
50-
```
49+
git pull origin main
50+
```

0 commit comments

Comments
 (0)