1
0
Fork 0
mirror of https://codeberg.org/Mo8it/How_To_Linux.git synced 2024-12-05 01:40:32 +00:00

Compare commits

...

8 commits

Author SHA1 Message Date
Mo
98cfbeaf60 Merge pull request 'Git commit' (#11) from Jjuan_g/dev-tools:commit into main
Reviewed-on: https://codeberg.org/mo8it/dev-tools/pulls/11
2023-08-17 09:28:05 +00:00
Mo
bec077c825 Merge pull request 'git-config' (#8) from saraf/dev-tools:git-config into main
Reviewed-on: https://codeberg.org/mo8it/dev-tools/pulls/8
2023-08-17 09:21:34 +00:00
Juan
6c863ee65e git commit, edit1 2023-08-17 11:07:59 +02:00
Sara Fechner
e464885cd0 Add bash to code line 2023-08-17 10:56:00 +02:00
Sara Fechner
c6d7319272 Change syntax of code block 2023-08-17 10:21:49 +02:00
Juan
dbf888fc6a Git commit 2023-08-16 17:23:03 +02:00
Sara Fechner
635ec921b2 Added another example 2023-08-16 15:53:51 +02:00
Sara Fechner
b20893652b Add description for git config 2023-08-16 15:51:48 +02:00

View file

@ -4,6 +4,18 @@ The participants of the course will add a description to each of these Git subco
## git config
Configure user-specific information like name, email etc. An example for setting the email is
```bash
git config --global user.email you@gotthis.com
```
An example for setting the username would be
```bash
git config --global user.name "Wonderful-Person"
```
## git init
## git clone
@ -30,6 +42,14 @@ if you want to stage all changes.
## git commit
This command is used to record the changes you've made to the repository as a new commit. A commit is a snapshot of the changes you've staged (using `git add`) and is accompanied by a commit message that describes the purpose of the changes you are committing.
Usage of `git commit`:
```bash
git commit -m "Your commit message here"
```
## git log
## git diff