Git

par

dans

Sources:


Quick Git Setup

Find .gifconfig:

git config --list --show-origin

List current gitconfig:

git config --list

Add your name and email to the gitconfig:

git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"

Use Git

From the console, open project folder and launch the below command to initialise the git:

> git init
Initialized empty Git repository in X:/folder_name/.git/

Push test.py

> git add test.py
> git commit -m "log updates"
[main (root-commit) xxxxxxx] original version
 1 file changed, 40 insertions(+)
 create mode 100644 test.py