mirror of
https://codeberg.org/Mo8it/How_To_Linux.git
synced 2024-11-21 23:38:04 +00:00
Merge pull request 'git_merge' (#21) from meifler123/dev-tools:git_config into main
Reviewed-on: https://codeberg.org/mo8it/dev-tools/pulls/21
This commit is contained in:
commit
6f877f5918
1 changed files with 9 additions and 0 deletions
|
@ -66,6 +66,15 @@ git commit -m "Your commit message here"
|
||||||
|
|
||||||
## git merge
|
## git merge
|
||||||
|
|
||||||
|
This command is used to combine two branches together. Use git checkout to visit the branch you want to merge to.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ git checkout main
|
||||||
|
$ git merge branch2
|
||||||
|
```
|
||||||
|
|
||||||
|
This will merge the branch "branch2" into the branch, where this command was executed in.(Here: "main")
|
||||||
|
|
||||||
## git reset
|
## git reset
|
||||||
|
|
||||||
## git revert
|
## git revert
|
||||||
|
|
Loading…
Reference in a new issue