Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/chaudinh/git-from-zero-to-hero

My practice for a git course
https://github.com/chaudinh/git-from-zero-to-hero

Last synced: about 1 month ago
JSON representation

My practice for a git course

Awesome Lists containing this project

README

        

# Git course

This repo is my practice for the course "git frome zero to hero" of codersx.

## What we will cover?

- Installation
- commits
- git log/ git show/ git diff
- working dir, staging area, git repository
- checkout, reset
- branching, merging
- git reset
- git revert
- .gitignore file
- github, bitbucket, gitlab
- git clone, git pull
- push a branch
- pull request
- code review
- resolve conflict with git rebase
- resolve conflict with merge

## Work with a team

- git checkout -b
- git push origin
- create a pull request on Github
- review code
-- review code online (github)
-- fetch branch into local machine to test offline
-- approve the pull request
- merge to master

## Resolve conflicts

When will conflicts happen?

- Changing the same file + same line
- A deleted file X, B modified file X

How to resolve?

### Method 1:

- Using `git rebase`
- Resolve conflict
- Push again with -f

### Method 2:

- Merge updated master to feature branch
- Resolve conflict
- Commit and push