Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/balataca/github-lessons
https://github.com/balataca/github-lessons
Last synced: about 4 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/balataca/github-lessons
- Owner: balataca
- Created: 2021-03-03T16:35:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-03T18:09:12.000Z (over 3 years ago)
- Last Synced: 2023-03-05T15:36:26.814Z (over 1 year ago)
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# github-lessons
## Types of Branches/Commits
* Feature (new functionality)
* Fix (bug fixes)
* Refactor
* Chore (Dependecy addition or project related commits)
## CommandsGet origin changes
```
git pull
```Get origin branches
```
git fetch
```Create a Branch
```
git branch feature/name-of-the-branch
```Checkout a branch
```
git checkout feature/name-of-the-branch
```Push a new branch to origin
```
git push --set-upstream origin feature/name-of-the-branch
```Stash changes:
```
git stash
```Pop stash:
```
git stash pop
```## Commit Template
```
prefix: short summary of changesLonger message body explaining what's been changed
Issue: #number-of-the-issue
```Example:
```
feature: adds a new header to start pageAdds a header to new index.html of
experience pageIssue: #4
```## Git Flow
1. Pull the most recent changes in the repository
2. Create a branch of what you will be working on
3. Before commit always pull again
4. Commit your changes in atomic style
5. Push your new branch to origin
6. Make a pull request for merging into main
7. Merge changes