|
|
|
**Page author :** @gregkub
|
|
|
|
**Page author :** @gregkub
|
|
|
|
|
|
|
|
Git is a versionning tool allowing multiple programmers to work simultaneously on the same codebase. Remember one day as a programmer you will have issues with git, wether you want it or not. So you better get good at it.
|
|
|
|
|
| ... | ... | @@ -79,9 +79,9 @@ repository is either ssh or https address of the repo. |
|
|
|
|
|
|
|
## Commit
|
|
|
|
|
|
|
|
A commit is like a checkpoint : you have modified multiple files, and you [push](#push) them to the [origin](#origin) with a commit message like "hey I've done this and that".
|
|
|
|
A commit is like a checkpoint : it is a set of modification to one or multiple files accompanied by a message summing up these modificiations. These modifications are then meant to be [pushed](#push) to the [origin](#origin).
|
|
|
|
|
|
|
|
A commit will contain the files [added](#add) to it. Any commit will be accompanied by a **commit message** that NEEDS to contain the important things that has been modified in the added files.
|
|
|
|
A commit will contain the files [added to it with `git add`](#add). Any commit will be accompanied by a **commit message** that NEEDS to contain the important things that has been modified in the added files.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git commit
|
| ... | ... | |