An open API service indexing awesome lists of open source software.

https://github.com/chmodshubham/github-cheat-codes

Github Cheat Codes
https://github.com/chmodshubham/github-cheat-codes

cheatsheet github

Last synced: 9 months ago
JSON representation

Github Cheat Codes

Awesome Lists containing this project

README

          

# Github Cheat Codes

1. To List all branches:

```bash
git branch -a
```

2. To create a link to another file in the same repository, use the following syntax in your README file:

```bash
[Link Text](relative/path/to/file)
```

3. To restore all files in your project to their state at the last commit.

```bash
git restore --source=HEAD :/
```

4. To view all releases of a repository:

```bash
git tag
```